View Full Version : about tree containercontextmenu event

28 Mar 2010, 7:38 AM
I'm using Extjs 3.1.1, and find there's problem with the treePanel's containercontextmenu event, it's never fired, i looked through forums and find this:

// fix 3.1.1 TreeEventModel's containerContextMenu bug:
// containercontextmenu event never fired
Ext.override(Ext.tree.TreeEventModel, {
delegateContextMenu : function(e, t){
this.onNodeContextMenu(e, this.getNode(e));
this.tree.fireEvent('containercontextmenu', this.tree, e);
// e.stopEvent();

without the e.stopEvent(), the browser's menu will also display. i didn't find anyone else post the same problem, so i wonder if there's other ways to fix this? and why the browser's menu doesn't show when 'contextmenu' event fires?