You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
I use typeahead for finding movies. If a searched movie (e.g., The Big Lebowski) is not in the list, I use a modal to insert this movie and to select the just inserted movie in the typeahead-input-field. Here simulated with "Set model". After this selection the input-field is marked as invalid.
The problem of invalidity occurs if you type some text in the input field and then click "Set model". If the input field is untouched or initially marked as valid (because the just searched movie "Matrix" was in the list) and you "Set model" afterwards, the form is valid too.
With this commit, the validity of a typeahead model is set to true if
the model is set manually and the typehead directive is set to be
non-editable.
add test for setting model manually
Fixesangular-ui#3318
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I use typeahead for finding movies. If a searched movie (e.g., The Big Lebowski) is not in the list, I use a modal to insert this movie and to select the just inserted movie in the typeahead-input-field. Here simulated with "Set model". After this selection the input-field is marked as invalid.
The problem of invalidity occurs if you type some text in the input field and then click "Set model". If the input field is untouched or initially marked as valid (because the just searched movie "Matrix" was in the list) and you "Set model" afterwards, the form is valid too.
Please look at the described example in this plnkr:
http://plnkr.co/edit/EUOYKIZu6oizcEXTQ3UH?p=preview
The text was updated successfully, but these errors were encountered: