Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Clear button shown on disabled select #980

Closed
@michalmatovcik

Description

@michalmatovcik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions