Commit 81f1e6e4 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Hack to prevent store.filterBy from showing menus in ExtJS 4.1.

A really strange bug indeed. Hope it gets fixed in 4.1 final.
parent a54e97f6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -237,6 +237,16 @@ Ext.define('Docs.view.cls.Toolbar', {
                        isSearch           && !re.test(m.get("label"))
                    );
                });
                // HACK!!!
                // In Ext JS 4.1 filtering the stores causes the menus
                // to become visible. But the visibility behaves badly
                // - one has to call #show first or #hide won't have
                // an effect.
                var menu = this.memberButtons[type].menu;
                if (menu && Ext.getVersion().version >= "4.1.0") {
                    menu.show();
                    menu.hide();
                }
            }
        }, this);
    },