Disabled dropdown still can be cleared #5286
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeNG PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.
http://plnkr.co/edit/kp2rDPVGXyQgQIfhrnPB?p=preview
Current behavior
You can clear the preselected value even when the dropdown is set to be disabled.
Expected behavior
Not be able to clear a disabled dropdown. It would even be a good idea to give the user the functionality to have or not to have the clear button.
Minimal reproduction of the problem with instructions
plunker shows the issue
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
PrimeNG version: 2.0.X
5.2.1
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
All
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: