From 1e7917b7343b8c027c4094a59bc1a61501ae05b0 Mon Sep 17 00:00:00 2001 From: Prathab Murugesan Date: Thu, 1 Dec 2016 22:25:35 +0000 Subject: [PATCH] fix: hide autocomplete ui on tag completion by key stroke --- src/jquery.tagsinput.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jquery.tagsinput.js b/src/jquery.tagsinput.js index b6c75e4..4619a63 100644 --- a/src/jquery.tagsinput.js +++ b/src/jquery.tagsinput.js @@ -306,6 +306,7 @@ if( (event.data.minChars <= $(event.data.fake_input).val().length) && (!event.data.maxChars || (event.data.maxChars >= $(event.data.fake_input).val().length)) ) $(event.data.real_input).addTag($(event.data.fake_input).val(),{focus:true,unique:(settings.unique)}); $(event.data.fake_input).resetAutosize(settings); + $(this).autocomplete("close"); return false; } else if (event.data.autosize) { $(event.data.fake_input).doAutosize(settings);