-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
MultiSelect: on clicking inside checkbox to uncheck dropdown closes and maxLength and max not working #4728
Comments
Got the same problem with the dropdown getting closed on unchecking a checkbox directly in a TreeSelect with selectionMode checkbox. The dropdown does not close if you select an element by not clicking directly on the checkbox. The expected behavior would be that the dropdown does not close on clicking the checkbox since users probably want to select further things in a multi (tree) select. This expected behavior can be found back in v8.7 |
I need Code Sandbox reproducers for all these issues to see them in action. |
You can use this one to start with and edit it to show the bug: https://stackblitz.com/edit/react-duwxzn?file=src%2FApp.js |
The described behavior shows in your sandbox already. Unchecking an element by clicking on the checkmark closes the dropdown, clicking on an elements text does not. The latter is what I would expect when clicking on the checkbox as well. Edit: Upon further inspection it seems that it is not the checkbox, but the check icon (svg element) inside it that gets the dropdown closed when clicking on it. |
Yep I already fixed that in if you check out |
@melloware I can confirm that the issue is still there. Reproducible here: https://primereact.org/multiselect/ |
Yep see the milestone on this ticket says it's slated for 10.0.0 |
@jerlam06 Ups my bad. Thanks :) |
Describe the bug
on clicking inside the checkbox to uncheck selected value dropdown closes and maxLength and max not working
Reproducer
No response
PrimeReact version
9.6.0
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: