Fix that unnecessary optionMenu remains

pull/1931/head
HirokiUchikawa 2018-10-16 19:48:50 +09:00
parent 08fccc4e77
commit 51a3521834
1 changed files with 4 additions and 4 deletions

View File

@ -537,6 +537,10 @@
} else {
this.selectLabel.text(opt.label);
}
if (this.optionMenu) {
this.optionMenu.remove();
this.optionMenu = null;
}
if (opt.options) {
if (this.optionExpandButton) {
this.optionExpandButton.hide();
@ -627,10 +631,6 @@
}
}
} else {
if (this.optionMenu) {
this.optionMenu.remove();
this.optionMenu = null;
}
if (this.optionSelectTrigger) {
this.optionSelectTrigger.hide();
}