With the above hack, I am able to stop the call of my parent click. But at the same time, my trigger is not going into showContextMenu method as well.
We are actually overriding the showContextMenu() method of goJS and using our own set of logic inside that method. Which is not getting executed with this hack.
Without this hack, the trigger goes into showContextMenu() method without any issues.
All of this code isn’t in a subclass of CommandHandler, is it? So you have not overridden the CommandHandler.showContextMenu method, have you? What is your showContextMenu?