1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix error when setting typedInput to boolean true/false

This commit is contained in:
Nick O'Leary 2019-10-03 15:04:27 +01:00
parent b763e0b0cb
commit c09004dbc8
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -632,7 +632,7 @@
for (var i=0;i<opt.options.length;i++) {
var op = opt.options[i];
if (typeof op === "string") {
if (op === value) {
if (op === value || op === ""+value) {
selectedOption.push(that.activeOptions[op]);
break;
}
@ -644,7 +644,7 @@
})
this.input.val(value);
if (!opt.multiple) {
if (!selectedOption.length === 0) {
if (selectedOption.length === 0) {
selectedOption = [{value:""}];
}
this._updateOptionSelectLabel(selectedOption[0])