Skip to content

Fix-filter#76

Merged
JesJehle merged 2 commits into
map-updatefrom
fix-filter
Apr 20, 2023
Merged

Fix-filter#76
JesJehle merged 2 commits into
map-updatefrom
fix-filter

Conversation

@mmaelicke
Copy link
Copy Markdown
Member

closes #71

@JesJehle, I tried a lot of different stuff, but noticed, that the range sliders are actually not disabled, but kind of deselected (compare to distance, which is actually deselected). This is really weird and I still don't get it.
If you add the <RangeFilter /> to the inventory-list, it works perfectly, all the time. Thus, it was the component life-cycle of the popover.

I changed the popover to never dismiss the components, thus the range-filter is now always mounted. A few quick tests indicate, that this was the problem. Thus, the error was caused by constantly creating and dismissing the component. With developer-tools enabled, this process was slowed down and 'fixed' the issue.
So, I think it works now, but I am not 100% sure why.

@mmaelicke mmaelicke requested a review from JesJehle April 20, 2023 07:24
@mmaelicke mmaelicke linked an issue Apr 20, 2023 that may be closed by this pull request
@mmaelicke mmaelicke self-assigned this Apr 20, 2023
@mmaelicke mmaelicke added this to the 1. Open Testing milestone Apr 20, 2023
Copy link
Copy Markdown
Collaborator

@JesJehle JesJehle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Black magic for me :)

@JesJehle JesJehle merged commit bb93c6e into map-update Apr 20, 2023
@JesJehle JesJehle deleted the fix-filter branch April 20, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter is deselected sometimes

2 participants