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 Apply filter button show/hide #2524

Merged
merged 2 commits into from
Sep 15, 2024
Merged

Conversation

samuelhwilliams
Copy link
Contributor

@samuelhwilliams samuelhwilliams commented Sep 15, 2024

This became permanent visibly after #2501 because jQuery's show/hide
methods work toggle inline styles for display: none, but that PR
switched over to the d-none class from bootstrap.

This patch adds/removes the d-none class now.

Fixes #2520

2024-09-15 12 29 05

This became permanent visibly after #2501 because jQuery's show/hide
methods work toggle inline styles for `display: none`, but that PR
switched over to the `d-none` class from bootstrap.

This patch adds/removes the `d-none` class now.
:w
This lookup doesn't work because it's doing a full "class equals" check,
but the class is "btn btn-primary".

Also, because the page doesn't refresh when individual filters are
removed, if the "Reset filters" button is removed altogether then users
have no way to "apply" the removal of all filters. So we actually need
to keep this button around when the last filter is removed (it remains a
probably-weird user interaction, but I'm maintaining that for now - not
because it's good, but just to not change the existing behaviour)
@samuelhwilliams samuelhwilliams changed the title Fix/bs4 filter changes Fix Apply filter button show/hide Sep 15, 2024
@pajusmar
Copy link

LGTM!

@samuelhwilliams samuelhwilliams merged commit 829c8e7 into master Sep 15, 2024
11 checks passed
@samuelhwilliams samuelhwilliams deleted the fix/bs4-filter-changes branch September 15, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Filter 'Apply' Button Visibility Issue Introduced in PR #2501
2 participants