View Full Version : Custom picker implementation dismisses the menu it is a child of.

11 Apr 2014, 9:31 AM
I have a custom Ext.form.field.Picker implementation that shows a grid as the dropdown. My problem is that clicking on an item in the grid (or anywhere on the grid) dismisses the menu that the picker is a child of. I have a toolbar with a button. The button has a menu which is a panel. The panel has two comboboxes and my custom grid picker. Clicking on the comboboxes works (the menu stays open) but not on the grid picker.

My stripped down code is located at https://fiddle.sencha.com/#fiddle/51k

Any help would be appreciated.

14 Apr 2014, 11:37 PM

The Ext.MenuMgr singleton class that managed menu interactions is looking for a class of x-class in the mousedown event to determine whether the menus should be closed. So, you can add cls: 'x-menu' to your picker grid and then clicking it won't close the parent menu.


15 Apr 2014, 5:25 AM
thank you very much.