From d2da2ac65607be3dedca4cd7293eb97a4cb0fb48 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 19 Jul 2018 16:41:52 +0300 Subject: [PATCH] Hide button menu when button is disabled --- apps/common/main/lib/component/Button.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index f5ba8af87..3fc3fa0a2 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -600,6 +600,9 @@ define([ } } + if (disabled && this.menu && _.isObject(this.menu) && this.menu.rendered && this.menu.isVisible()) + this.menu.hide(); + if ( !!me.options.signals ) { var opts = me.options.signals; if ( !(opts.indexOf('disabled') < 0) ) {