Jelajahi Sumber

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 9 tahun lalu
induk
melakukan
79566a9214
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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"
 							display-property="display"
 							add-on-paste="true"
+							add-on-enter="false"
 							replace-spaces-with-dashes="false"
 							type="email"
 						)