summaryrefslogtreecommitdiffstats
path: root/jquery.multiple.select.js
diff options
context:
space:
mode:
author文翼 <wenzhixin2010@gmail.com>2015-06-13 12:12:46 +0800
committer文翼 <wenzhixin2010@gmail.com>2015-06-13 12:12:46 +0800
commit5f4dfcdadb9a44e1e6f38cdfaef189c26f46b349 (patch)
treeea6605c8c223841ce21bb5e6a3a004b7e8659a4e /jquery.multiple.select.js
parent2d92036038fc7470a9b3b39d2cd82844d959f32b (diff)
parent3680984f399d6e854294d79275e50cd20ae4b416 (diff)
downloadmultiple-select-5f4dfcdadb9a44e1e6f38cdfaef189c26f46b349.zip
multiple-select-5f4dfcdadb9a44e1e6f38cdfaef189c26f46b349.tar.gz
multiple-select-5f4dfcdadb9a44e1e6f38cdfaef189c26f46b349.tar.bz2
Merge pull request #200 from rgeraads/develop
fixed dropdown not closing when focus is lost
Diffstat (limited to 'jquery.multiple.select.js')
-rw-r--r--jquery.multiple.select.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 657d43e..27a2d5a 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -43,8 +43,7 @@
$(e.target).parents('.ms-choice')[0] === that.$choice[0]) {
return;
}
- if (e.target.tagName.toUpperCase() === "INPUT" &&
- ($(e.target)[0] === that.$drop[0] ||
+ if (($(e.target)[0] === that.$drop[0] ||
$(e.target).parents('.ms-drop')[0] !== that.$drop[0]) &&
that.options.isOpen) {
that.close();