Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue that was causing the current selected themes to become d… #149

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

Bonkles
Copy link
Collaborator

@Bonkles Bonkles commented Aug 20, 2024

…esynced after the navigator was used.

When any of the navigator options are clicked, such as 'Paris Roads', the site updates the current visible types with a call to a hook named 'setVisibleTypes' that accepts a list of type names to 'check' in the theme selector.

The theme selector was missing the logic that would in turn update the current themes that should be considered 'enabled', which led all of them to still be set as 'ON' even though they weren't checked.

So, after clicking paris roads, the 'Addresses' checkbox would be unchecked, but the 'visibleThemes' would have 'Addresses = True'. This is what caused the need to click the checkbox twice afterwards- the first time toggled true to false, the second time toggled back from false to true, checking the box.

@Bonkles Bonkles merged commit 829d28c into main Aug 20, 2024
1 check passed
@Bonkles Bonkles deleted the Fix_146 branch August 20, 2024 16:29
@Bonkles Bonkles linked an issue Aug 20, 2024 that may be closed by this pull request
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.

Mutliple clicks required to re-enable layers/themes
1 participant