Having some difficulty solving a particular edge case scenario. When I select a value from the dropdown of the typeahead using either the keyboard or mouse, the ng-model in the input field is populated correctly.
However, if I type a few letters and then press the 'escape' button, the ng-model 'textFieldValue' appears to be replaced with 'undefined' by the typeahead because no value was chosen.
What would be the most effective approach to resolving this issue? Or is it considered too rare of a case?
<input type="text" ng-model="textFieldValue"
typeahead="list for list in getList($viewValue)" typeahead-editable="false">