Open WilliamHolmes opened 6 years ago
Can we (or is it possible) to hide the context menu when no menu items are enabled?
On some occasions I might only see the Copy menu item but its disabled. I'd rather not show the contextMenu at all in the case.
Copy
I ended up extending the ContextMenuBuilder, including ...
addCopy (menu, menuInfo) { const { editFlags: { canCopy } } = menuInfo; return canCopy ? super.addCopy(menu, menuInfo) : menu; }
Question
Can we (or is it possible) to hide the context menu when no menu items are enabled?
Use Case
On some occasions I might only see the
Copy
menu item but its disabled. I'd rather not show the contextMenu at all in the case.