You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The component has two attributes which are both switching the behaviour of the component regarding the clearing of the selection:
"unselectable", description: "Whether the selection can be cleared."
"allowEmpty", description: "Whether selection can not be cleared."
This is quite confusing, as it is not clear which one to use and more importantly, which one is winning in case of contradictionary values.
What happens if I set "unselectable" to "true" and "allowEmpty" to "false". Is it possible to clear the selected value or not?
Environment
We are currently using PrimeNG 16.9.1.
Reproducer
No response
Angular version
16.2.12
PrimeNG version
16.9.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.12.1
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
I think it would be easier to have only on attribute, either "unselectable" or "allowEmpty". I would prefer "allowEmpty"
The text was updated successfully, but these errors were encountered:
So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you open a new issue so we can include it in our roadmap?
Thanks a lot for your understanding!
Best Regards,
Describe the bug
The component has two attributes which are both switching the behaviour of the component regarding the clearing of the selection:
"unselectable", description: "Whether the selection can be cleared."
"allowEmpty", description: "Whether selection can not be cleared."
This is quite confusing, as it is not clear which one to use and more importantly, which one is winning in case of contradictionary values.
What happens if I set "unselectable" to "true" and "allowEmpty" to "false". Is it possible to clear the selected value or not?
Environment
We are currently using PrimeNG 16.9.1.
Reproducer
No response
Angular version
16.2.12
PrimeNG version
16.9.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.12.1
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
I think it would be easier to have only on attribute, either "unselectable" or "allowEmpty". I would prefer "allowEmpty"
The text was updated successfully, but these errors were encountered: