Skip to content

Commit e0f8582

Browse files
committed
fixed bug: multiple select always close when the options is clicked
1 parent bb979dc commit e0f8582

File tree

13 files changed

+27
-15
lines changed

13 files changed

+27
-15
lines changed

dist/js/app.js

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/app.js.gz

2 Bytes
Binary file not shown.

dist/js/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/app.js.map.gz

5 Bytes
Binary file not shown.

dist/js/multiple-select.js

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/multiple-select.js.gz

2 Bytes
Binary file not shown.

dist/js/multiple-select.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/multiple-select.js.map.gz

4 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "multiple-select-js",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "Simple js library for html5 multiple select",
55
"main": "src/MultipleSelect.js",
66
"scripts": {

src/MultipleSelect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class MultipleSelect {
6767
selectedItems.push({ value: option.value, label: option.innerText })
6868
})
6969

70-
let isMultiple = select.getAttribute('multiple') !== null
70+
let isMultiple = select.multiple
7171

7272
select.insertAdjacentElement('afterend', root)
7373
select.hidden = true

0 commit comments

Comments
 (0)