From 79566a9214f97d3b2ab34b5e20dd65eeff14871e Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Wed, 6 Sep 2017 11:39:30 +0100 Subject: [PATCH] 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. --- services/web/app/views/project/editor/share.pug | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/app/views/project/editor/share.pug b/services/web/app/views/project/editor/share.pug index 32e0404afc..11e1145863 100644 --- a/services/web/app/views/project/editor/share.pug +++ b/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" )