Prevent autocomplete on suggestions that don't match

The behaviour of the ngTagsInput directive is somewhat counter-intuitive -
typing part of a suggested email will appear as though it matches but pressing
enter will not input the suggestion, but the current typed value.

Disabling add on enter will still allow enter to select the selection, but
prevents selection of the partially typed email/name.
This commit is contained in:
Alasdair Smith 2017-09-06 11:39:30 +01:00
parent ca8ba6dabe
commit 79566a9214

View file

@ -71,6 +71,7 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
focus-on="open"
display-property="display"
add-on-paste="true"
add-on-enter="false"
replace-spaces-with-dashes="false"
type="email"
)