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 #14596 - fixed label logic #14597

Closed
wants to merge 5 commits into from

Conversation

rosenthalj
Copy link
Contributor

Fix #14596

The following video demonstrates the fix.

DropdownFilterBugFix.mov

To fix this issue, I updated the logic for computing the dropdown's label.

Note: For "virtual scroll" configurations, the original logic is unchanged

I manually tested my fix on all the PrimeNG dropdown demos

Copy link

vercel bot commented Jan 19, 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 Jan 19, 2024 9:16pm

previous commit incorrectly assumed that  value equaled option.  This assumption was incorrect and broke the table's filter option dropdown
@rosenthalj
Copy link
Contributor Author

After I originally submitted this pull request, I manually tested the p-table's column filters which also uses p-dropdown. My original changes broke those dropdown. As a result, I updated my changes. The updated code (which is more complicated) now works on all the dropdown demos and the table demos.

@rosenthalj rosenthalj mentioned this pull request Jan 22, 2024
@rosenthalj
Copy link
Contributor Author

rosenthalj commented Jan 30, 2024

this pull request has been superseded by Pull Request #14665

@rosenthalj rosenthalj closed this Jan 30, 2024
@rosenthalj rosenthalj deleted the dropdownFilterFix branch January 13, 2025 09:29
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.

p-dropdown: Filtering all items incorrectly clears the dropdown's selected value
1 participant