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

Problem with ui-select-required #1206

Closed
dshep4 opened this issue Sep 24, 2015 · 6 comments
Closed

Problem with ui-select-required #1206

dshep4 opened this issue Sep 24, 2015 · 6 comments

Comments

@dshep4
Copy link

dshep4 commented Sep 24, 2015

Upon selecting an item from a multi select box and then deselecting it I am left with the following classes in the element

<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control ng-valid ng-dirty ng-touched" 
    ng-class="{open: $select.open}" 
    name="slideTransitions" 
    ng-model="slide.transitions" 
    theme="bootstrap" 
    ui-select-required="">

As you can see the element still believes it valid when ui-select-required should step in and make it invalid because nothing is selected

@user378230
Copy link
Contributor

This should be resolved by #1492 when release.

If not please update the issue with a demo plunkr (or similar) against the latest version of ui-select (currently v0.16.0) and it we can reopen the issue.

@tmanoel
Copy link

tmanoel commented Aug 8, 2016

It's not working yet. Using v0.19.0...

@user378230
Copy link
Contributor

@tmanoel please provide plunkr

@tmanoel
Copy link

tmanoel commented Aug 9, 2016

Take a look, it doesnt work on single neither multiple..
http://plnkr.co/edit/5Zt0OfEFh18tlcKP1Yen?p=preview

@user378230
Copy link
Contributor

Only latest version is supported. v0.11.2 is very old, please ensure plunkr is update to date.

@tmanoel
Copy link

tmanoel commented Aug 9, 2016

Sorry, updated... Look:
http://plnkr.co/edit/21NTjbyMIHY67gf6BN2S?p=preview

Note: in the version 0.19 we have this note:

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

No branches or pull requests

3 participants