diff options
-rw-r--r-- | jquery.multiple.select.js | 3 |
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(); |