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

allow-clear not getting disabled with ng-disabled on ui-select directive #1392

Closed
Sheeryada opened this issue Jan 19, 2016 · 5 comments
Closed

Comments

@Sheeryada
Copy link

Disabling ui-select with ng-disabled is not disabling the cross icon/button.

http://plnkr.co/edit/j5uqDFxxDbXNb2XMwaWW

Steps to reproduce (use above plunker):

  1. Disable ui-select using toggle button at the top.
  2. Try clicking cross icon/button when ui-select disabled.

PS: Noticed this issue only after upgrading to bootstrap 3.3.5 version and was not reproducible with bootstrap 3.3.2 version.

@jrparish
Copy link

I am also running into the same issue. My workaround using less -

.ui-select-match {
  .ui-select-toggle[disabled] {
    .glyphicon-remove {
      display: none;
    }
  }
}

@user378230
Copy link
Contributor

This is probably resolved by #1388 but it hasn't been released yet. You could verify by updating the plunkr with the version from the examples: http://angular-ui.github.io/ui-select/#examples

If you verify it, please update the issue so it can be closed. 😄

@jrparish
Copy link

Updating the examples to use Bootstrap 3.3.5 works as expected 👍

@Sheeryada
Copy link
Author

Sheeryada commented May 9, 2016

@jrparish Plunker present in the initial issue is using Bootstrap 3.3.5 and seems like your solution doesn't solve the issue. However thanks for the css solution.

@jrparish
Copy link

jrparish commented May 10, 2016

@Sheeryada - The ui-select fix hasn't been released yet, so your plunkr won't work since its using 0.13.2. Once the new version is released, it should solve your issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants