View Full Version : evtObj.stopEvent() Not Working in Windows FireFox

17 Jun 2011, 8:59 AM

Im using windows xp firefox 4.0.1.

Im trying to display a context menu but the firefox right click event is on top of my context menu. Im using the stopevent and it works in chrome. But firefox is ignoring the stopevent. Can anyone help or have a workaround ? Thank You in advance ...

function doRowCtxMenu(thisGrid, rowIndex, evtObj) {
if (! thisGrid.rowCtxMenu) {
thisGrid.rowCtxMenu = new Ext.menu.Menu({
items :
[{text : 'Select Vess/Voyg',
handler: function() {
var gridThis = thisGrid;

BTW, It works in Ubuntu Firefox but not windows ...

17 Jun 2011, 1:20 PM
Would changing the z-index on the context menu fix the problem?

How would I do that in ExtJS to a context menu?

Im a newbie at this stuff ...

19 Jun 2011, 3:29 PM
Please use code tags when posting code (# icon in the editor toolbar).

Changing the z-index won't help, you need to stop the default browser menu showing up. Try to produce a really short reproducible test case... things like the Ext.menu.Menu aren't necessary to demonstrate that stopEvent() isn't working. I'd suggest using something simpler than a grid to attach the contextmenu event to too, perhaps just an Ext.Element? If you can produce such a test case with Ext 3.4 then you should file a bug. Read the guide on bug posting before you do or it will be ignored.