-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Table Column Filter dialog's dropdowns are incorrectly displaying selected value verses selected label #14055
Comments
I also noticed that problem in latest versions and since there is a lot of tables with filters in my projects it is a very noticable bug! |
This is happening with all dropdowns since I updated to 16.7.1. It looks like the p-dropdown optionLabel default changed from 'label' to null between 15 and 16: This is obviously a breaking change, but there is no mention of this in the changelog: https://github.com/primefaces/primeng/blob/master/CHANGELOG.md |
Regardless of whether or not the default value for p-dropdown optionLabel has changed, this is a problem. When you modify Table.ts source code to set optionLabel='label' the functionality is still broken. I still believe I have identified the root cause of the problem in the screenshot I provided in the original comment. option |
This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
1 similar comment
This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Describe the bug
Table Column Filter dialog's "operator" dropdown and "matchmode" dropdown are displaying the selected "value" verses selected "label"
This change was induced with the dropdown accessibility changes
The first screenshot is from the v16.7.1 table filter demo and demonstrates the problem.
The second screenshot is from the v15-lts table filter demo and demonstrates the proper functionality
I investigated the issue and believe that the issue is caused by the dropdown.ts computed label method. The following fixes the problem for the Table Filters, but I am not sure this is the correct overall fix (that is why I did not submit a pull request):
Environment
mac os and windows
Reproducer
https://primeng.org/table#filter
Angular version
16.x
PrimeNG version
16.7.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.18.1
Browser(s)
safari, chrome, firefox
Steps to reproduce the behavior
Expected behavior
Filters' dropdowns should display the selected labels: "Match All", "Starts with"
The text was updated successfully, but these errors were encountered: