mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-10 09:52:18 +02:00
Resolving the issue 342: we can't select an empty empty string or 0 as value. EDIT.
This commit is contained in:
parent
1d9fd326f0
commit
a2a9953b1b
|
@ -881,7 +881,7 @@ class Choices {
|
|||
* @private
|
||||
*/
|
||||
_triggerChange(value) {
|
||||
if (value == 'undefined') {
|
||||
if ((typeof value == 'undefined') || value == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue