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

properly fix issue #13361 #13754

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Conversation

rosenthalj
Copy link
Contributor

@rosenthalj rosenthalj commented Sep 26, 2023

Fixes #13392

Merge pull request #13392 fixed issue #13361 but caused filters not to automatically close when clicking different filter icon buttons.

This pull request fixes "properly" issue #13361 and as a result fixes the bug that was induced by the original attempted fix.

This pull request reverts the original changes to fix issue #13361. Instead of stopping the click event propagation, the original isFilterElement method is reinstated and is improved by calling a new isFilterElementIconOrButton method.

The following demonstrates step by step the original issue, the incorrect fix, and the improved fix.

Movie 1) shows the original issue #13361 in v16.0.2

1_bad_16.0.2_IncorrectSortAndFilter.mov

Movie 2) shows proper filter clicking behavior in v16.0.2 before merge request #13392 breaks the funcitonality

2_good_16.0.2_clickOnFilter.mov

Movie 3) shows that issue #13361 in v16.3.1 is fixed by merge request #13392

3_good_16.3.1_fix13392_IncorrectSortAndFilter.mov

Movie 4) shows that v16.3.1 merge request #13392 breaks filter click icon functionality

4_bad_16.3.1_fix13392_clickOnFilter.mov

Movie 5) shows that the changes in this pull request also fixes the issue #13361

5_good_newFix_IncorrectSortAndFilter.mov

Movie 6) shows that the changes in this pull request also fixes the filter click icon functionality that was broken by merge request #13392

6_good_newFix_clickOnFilter.mov

merge pull request primefaces#13392 fixed issue primefaces#13361 but caused filters not to automatically close when clicking different filter buttons.

This change properly  fixes issue primefaces#13361 and as a result fixes the bug that was induced by the original attempted fix.

Instead of stopping the click event propagation,   the isFilterElement method is improved by calling a new  isFilterElementIconOrButton method
@vercel
Copy link

vercel bot commented Sep 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
primeng-ssr-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2023 4:24pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Sep 26, 2023 4:24pm

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.

2 participants