diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index cc142495a..3f251628c 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -494,9 +494,10 @@ define([ }, setMenu: function (m) { - if (this.rendered && m && _.isObject(m) && _.isFunction(m.render)){ + if (m && _.isObject(m) && _.isFunction(m.render)){ this.menu = m; - this.menu.render(this.cmpEl); + if (this.rendered) + this.menu.render(this.cmpEl); } } });