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 for incorrect behaviour when a column is both sortable and filter… #13392

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

senasowseelya
Copy link

@senasowseelya senasowseelya commented Jul 28, 2023

Problem

fix #13361
The event is being propagated from filter button click handler to parent div (whose click handler performs sorting)

Solution

Stop the event from propagation in the filter button click handler.
As we are preventing the event propagation, we dont have to check for 'isFilterElement'

@cetincakiroglu

@vercel
Copy link

vercel bot commented Jul 28, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Jul 28, 2023 8:58am

@gucal gucal self-requested a review August 28, 2023 10:08
@gucal gucal added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Aug 28, 2023
@gucal gucal merged commit 1ea92ad into primefaces:master Aug 30, 2023
@gucal
Copy link
Contributor

gucal commented Aug 30, 2023

Thanks a lot for your contribution!

@gucal gucal removed the Status: Pending Review Issue or pull request is being reviewed by Core Team label Aug 30, 2023
rosenthalj added a commit to rosenthalj/primeng that referenced this pull request Sep 26, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants