mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-10 18:02:47 +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
|
* @private
|
||||||
*/
|
*/
|
||||||
_triggerChange(value) {
|
_triggerChange(value) {
|
||||||
if (value == 'undefined') {
|
if ((typeof value == 'undefined') || value == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue