This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Clear button shown on disabled select #980
Comments
which version are you using? i have found it in latest release 2015-06-08 13:01 GMT+02:00 Sam Blowes notifications@github.com:
|
Closing due to lack of reproduction in Plunker - feel free to open a new issue with a Plunker if it is still a problem. |
fcaballero
pushed a commit
to fcaballero/ui-select
that referenced
this issue
Apr 17, 2016
hide clear button if ui-select is disabled Closes angular-ui#1388 and angular-ui#980
fcaballero
pushed a commit
to fcaballero/ui-select
that referenced
this issue
Apr 25, 2016
hide clear button if ui-select is disabled Closes angular-ui#1388 and angular-ui#980
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have ui-select with ng-disabled =false.
Select itself behave as expected - so i cannot select another value.
But clear button (allow-clear=true) is still shown and working!
Suggestion:
I have fixed it in my own app - by changing setAllowClear function to set $select.allowClear to false if $select.disabled is true.
Next step is to call setAllowClear function from inside of $select.disabled watcher.
Please evaluate this bug and fix it.
thanks
The text was updated successfully, but these errors were encountered: