use-context-menu
use-context-menu copied to clipboard
Position fixed is unacceptable
It makes impossible to scroll context menu with content
Could you please create a codesandbox to reproduce the issue?
It is generic issue with fixed positioning. If you have scrollable page your context menu wouldn't "stick" to the element on which context menu was shown initially.
BTW, I have found a solution to make this behavior acceptable :) Look at https://material-ui.com/components/menus/#context-menu When you call context menu you may notice that scroll on the right disappears.
I don't think context menus are supposed to stick to the element on which they were initially shown 🙂 For example, try right clicking on a page in Chrome and scrolling -- the context menu remains at a fixed position on the screen and does not scroll with the rest of the page 🙂