ExtJS 4.1: FocusManager.enable prevents stopping click event

Posted by jacob on Stack Overflow See other posts from Stack Overflow or by jacob
Published on 2012-12-07T04:46:58Z Indexed on 2012/12/07 5:04 UTC
Read the original article Hit count: 372

Filed under:
|

If FocusManager is enabled, then Menu item href click handlers can not be stopped. This causes the native click handler to complete and navigate the location hash to '#'. If FocusManager is not enabled, it does not change the hash.

I tried overriding Ext.menu.Item to call evt.stopEvent if href is null. However, it looks like the EventManager.createListenerWrap() method totally hides the actual browser event and replaces it with an EventObject focus event.

What's the correct solution here?

Thanks.

© Stack Overflow or respective owner

Related posts about extjs4

Related posts about extjs4.1