From 51a352183421a3a23079b766fad03bc7f9d93436 Mon Sep 17 00:00:00 2001 From: HirokiUchikawa Date: Tue, 16 Oct 2018 19:48:50 +0900 Subject: [PATCH] Fix that unnecessary optionMenu remains --- editor/js/ui/common/typedInput.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/js/ui/common/typedInput.js b/editor/js/ui/common/typedInput.js index 6aab0bf53..5f78a2c74 100644 --- a/editor/js/ui/common/typedInput.js +++ b/editor/js/ui/common/typedInput.js @@ -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(); }