diff options
author | MG12 <wuzhao.mail@gmail.com> | 2015-12-13 00:03:19 +0800 |
---|---|---|
committer | MG12 <wuzhao.mail@gmail.com> | 2015-12-13 00:03:19 +0800 |
commit | 0e62bf0b7bdc260e882fd185492939cbaed04d56 (patch) | |
tree | 84f678a775ead7577fdcac9089ca918b4febcf39 /src/module/Combobox.jsx | |
parent | 518b852e8bd9c50a6c5c7e84cddecb5c94ebb5b6 (diff) | |
download | time-picker-0e62bf0b7bdc260e882fd185492939cbaed04d56.tar.gz time-picker-0e62bf0b7bdc260e882fd185492939cbaed04d56.tar.zst time-picker-0e62bf0b7bdc260e882fd185492939cbaed04d56.zip |
update test case and fix bugs
Diffstat (limited to 'src/module/Combobox.jsx')
-rw-r--r-- | src/module/Combobox.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module/Combobox.jsx b/src/module/Combobox.jsx index 27a8226..1e172a7 100644 --- a/src/module/Combobox.jsx +++ b/src/module/Combobox.jsx | |||
@@ -9,7 +9,7 @@ const formatOption = (option, disabledOptions) => { | |||
9 | } | 9 | } |
10 | 10 | ||
11 | let disabled = false; | 11 | let disabled = false; |
12 | if (disabledOptions.indexOf(option) >= 0) { | 12 | if (disabledOptions && disabledOptions.indexOf(option) >= 0) { |
13 | disabled = true; | 13 | disabled = true; |
14 | } | 14 | } |
15 | 15 | ||