vaadin / flow-components

Java counterpart of Vaadin Web Components
100 stars 66 forks source link

Faster ContextMenu open #4221

Open lanmaster opened 1 year ago

lanmaster commented 1 year ago

Describe your motivation

I use ContextMenu in my projects, usually linked with Grids. When i make right-click on grid's item then i see a some delay before context menu is opening. It is very annoying. For compare - MenuBar component is more faster to open. How can i fix it to achive ContextMenu open as fast as MenuBar?

Describe the solution you'd like

Faster opening ContextMenu. Comparing: https://vaadin.com/docs/v14/ds/components/context-menu https://vaadin.com/docs/v14/ds/components/menu-bar

Describe alternatives you've considered

Will trying to use MenuBar instead ContextMenu. But it is hard to rework in our app.

Additional context

Maybe i can somehow speed-up opening ContextMenu?

yuriy-fix commented 1 year ago

Dear @lanmaster, does your solution require information about item clicked in grid for menu content generation?

lanmaster commented 1 year ago

Yes, it is required