I have a text field that uses AngularUI's typeahead feature. It looks like this:
<input typeahead="eye for eye in autocomplete[column] | filter:$viewValue">
I'd like to force the user to select an option from the list that is generated. If they type something that is not on the list exactly as it appears, on blur (clicking outside of the text field), i'd like the value of the text field to reset to it's original value.
Is this functionality part of the typeahead directive, or will I need to extend it? I searched for about 10 minutes on google and stackoverflow, but couldn't find any relevant documentation.
Can anyone please point me in the right direction to accomplish this?
filter:$viewValue:true
– Macadamtypeahead-editable="false"
(typeahead-editable (Defaults: true) : Should it restrict model values to the ones selected from the popup only ?) – Macadam$modelValue
and the$viewValue
. – Macadam