From 55aa48d02f8da834d3726fcc08fb7973bf54e2bd Mon Sep 17 00:00:00 2001 From: qianjiahao <1041897388@qq.com> Date: Tue, 1 Dec 2015 17:04:19 +0800 Subject: [PATCH] Fix : multi select dropdown item no response After inputing first value , you can select dropdown item and see the selected class style in the first time , when you input another value follow the first value , the key down operation will loose response , and you can not see the selected style at the dropdown list . clean the value "selected_dropdown_item" to null when you multi input values. --- src/jquery.tokeninput.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jquery.tokeninput.js b/src/jquery.tokeninput.js index 4b69d823..eda62d8f 100755 --- a/src/jquery.tokeninput.js +++ b/src/jquery.tokeninput.js @@ -377,6 +377,7 @@ // set a timeout just long enough to let this function finish. setTimeout(function(){ do_search(); }, 5); } + selected_dropdown_item = null; break; } });