mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
f8d5fef3c4
commit
23a5cb1917
@ -443,7 +443,11 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
this._showMenu(this.optionMenu,this.optionSelectTrigger);
|
this._showMenu(this.optionMenu,this.optionSelectTrigger);
|
||||||
var selectedOption = this.optionMenu.find("[value='"+this.optionValue+"']");
|
var targetValue = this.optionValue;
|
||||||
|
if (this.optionValue === null || this.optionValue === undefined) {
|
||||||
|
targetValue = this.value();
|
||||||
|
}
|
||||||
|
var selectedOption = this.optionMenu.find("[value='"+targetValue+"']");
|
||||||
if (selectedOption.length === 0) {
|
if (selectedOption.length === 0) {
|
||||||
selectedOption = this.optionMenu.children(":first");
|
selectedOption = this.optionMenu.children(":first");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user