Ver Fonte

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.
Alasdair Smith há 9 anos atrás
pai
commit
79566a9214
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      services/web/app/views/project/editor/share.pug

+ 1 - 0
services/web/app/views/project/editor/share.pug

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