use-context-menu icon indicating copy to clipboard operation
use-context-menu copied to clipboard

Position fixed is unacceptable

Open deser opened this issue 4 years ago • 4 comments

It makes impossible to scroll context menu with content

deser avatar May 07 '20 11:05 deser

Could you please create a codesandbox to reproduce the issue?

cluk3 avatar May 07 '20 13:05 cluk3

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.

deser avatar May 21 '20 08:05 deser

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.

deser avatar May 21 '20 14:05 deser

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 🙂

Eli-Black-Work avatar Aug 24 '21 08:08 Eli-Black-Work