Closed FrontToEnd closed 5 days ago
I want to disable the pop-up of the right-click menu, currently the onBeforeCommandExecute cannot prevent the pop-up of the right-click menu.
I can specify the right-click menu commands in onBeforeCommandExecute and prevent the menu from popping up by throwing an error.
I think it is a bug 🐞. When contextMenu is set to false, the context menu of the sheet bar should not be opened. Don't worry about it, I will fix it soon.
contextMenu
false
Initial checklist
Problem
I want to disable the pop-up of the right-click menu, currently the onBeforeCommandExecute cannot prevent the pop-up of the right-click menu.![image](https://github.com/dream-num/univer/assets/17469925/38be7190-cd43-45a7-b80c-153b0f17dd9c)
Solution
I can specify the right-click menu commands in onBeforeCommandExecute and prevent the menu from popping up by throwing an error.