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

fixed #14807 #14252 #14603 - updated onToggleAll method to call onChange and onSelectAllChange #14826

Conversation

rosenthalj
Copy link
Contributor

Fix #14807
Fix #14252
Fix #14603

I updated the onToggleAll method to call onChange.emit and onSelectAllChange.emit. Special logic was add to determine whether or not onSelectAllChange.emit should be called since a user could be filtering.

The first video shows the issue #14807 reproducer (which I created based on the steps provided in the issue) working after the fix. Note: the end of the video shows how the changes work when the user filters before toggling on and off

Fixed_Reproducer_14807.mov

The second video shows the issue #14252 reproducer working after the fix. Note: the end of the video also shows how the changes work when the user filters before toggling on and off

Fixed_Reproducer_14252.mov

The third video shows issue #14603 fixed, the PimeNG table filter-menu demo is fixed with this pull request

Fixed_14603.mov

This PR supersedes PR #14604

in the onToggleAll  method always call onChange but  added test to call onSelectAllChange only when all checked or all not checked

refactored code to create   getAllVisibleAndNonVisibleOptions method so that onToggleAll could reuse the functionality without cutting and pasting
Copy link

vercel bot commented Feb 16, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Feb 16, 2024 4:02pm

@miki995
Copy link
Contributor

miki995 commented Feb 23, 2024

@cetincakiroglu @mehmetcetin01140 ??? Can this be merged please, it is crucial thing we use in our project?

Thanks for understanding...

@cetincakiroglu
Copy link
Contributor

Hi @rosenthalj

Thanks a lot for the effort and support!

@cetincakiroglu cetincakiroglu merged commit 0dfa2c0 into primefaces:master Feb 23, 2024
3 checks passed
@cetincakiroglu cetincakiroglu removed the Status: Pending Review Issue or pull request is being reviewed by Core Team label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants