hideContextMenu freezing diagram

gojs version : GoJS v1.6.4

When i trigger : diagram.toolManager.contextMenuTool.hideContextMenu() command manually, diagram get freezed.

I’m not sure what your situation is, but it ought to be the case that it is the ContextMenuTool that is running and that showed the context menu Adornment. One way to stop that tool, or any tool really, is to call doCancel() on it.

Try that, instead of calling hideContextMenu().

thanks, it works.