diff options
author | zhixin <wenzhixin2010@gmail.com> | 2015-11-24 15:58:21 +0800 |
---|---|---|
committer | zhixin <wenzhixin2010@gmail.com> | 2015-11-24 15:58:21 +0800 |
commit | 2e8cf36451c6459d5313edc09ddfa5f37091fcdd (patch) | |
tree | 0ceb50de6449b906e750dee323f5ac559c14d290 | |
parent | 29d988c60d2be26b1882c3148046459cdaac2574 (diff) | |
download | multiple-select-2e8cf36451c6459d5313edc09ddfa5f37091fcdd.zip multiple-select-2e8cf36451c6459d5313edc09ddfa5f37091fcdd.tar.gz multiple-select-2e8cf36451c6459d5313edc09ddfa5f37091fcdd.tar.bz2 |
Fix #186: changed the body selector to html.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | jquery.multiple.select.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 71d0c0e..8af92aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### 1.2.0 +* [bug] Fix #184: prevented the dropdown handle error. * [enh] INPUT tags should be nameless. * [bug] Fix #48: auto hide when the single option is set to true. * [bug] Fix #65: show selectAll and hide noResults when open. diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js index 57a4e99..7f16a08 100644 --- a/jquery.multiple.select.js +++ b/jquery.multiple.select.js @@ -75,7 +75,7 @@ this.selectItemName = 'data-name="selectItem' + name + '"'; if (!this.options.keepOpen) { - $('body').click(function (e) { + $('html').click(function (e) { if ($(e.target)[0] === that.$choice[0] || $(e.target).parents('.ms-choice')[0] === that.$choice[0]) { return; |