diff options
-rw-r--r-- | jquery.multiple.select.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js index 03db7db..985dfe0 100644 --- a/jquery.multiple.select.js +++ b/jquery.multiple.select.js @@ -43,7 +43,8 @@ $(e.target).parents('.ms-choice')[0] === that.$choice[0]) { return; } - if (($(e.target)[0] === that.$drop[0] || + if (e.target.tagName.toUpperCase() === "INPUT" && + ($(e.target)[0] === that.$drop[0] || $(e.target).parents('.ms-drop')[0] !== that.$drop[0]) && that.options.isOpen) { that.close(); |