Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safe triangle / delay before closing submenu #205

Open
eirikhm opened this issue Feb 3, 2022 · 3 comments
Open

Safe triangle / delay before closing submenu #205

eirikhm opened this issue Feb 3, 2022 · 3 comments

Comments

@eirikhm
Copy link

eirikhm commented Feb 3, 2022

Do you want to request a feature or report a bug?
A feature

What is the current behavior?
When a submenu is opened it's at times hard to reach it since we need to go sideways with the cursor to avoid focusing the element below, which closes it.

image

This is easily demonstrated with the example code that ships with the project. Try going from "Submenu" to "Submenu Item 4" by doing a diagonal mouse movement.

See some background information here: https://height.app/blog/guide-to-build-context-menus

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:

Use built in example in project.

What is the expected behavior?
The submenu have a delay before closing

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Not applicable.

@aaadotpm
Copy link

Would being able to pass in custom animations to the <Submenu /> component help us solve this problem? For instance by adding an animation-delay CSS property to a custom animation like we are able to with <Menu />?

@FontEndArt
Copy link

Yes. I need it, too.

@Minjun-KANG
Copy link

Has anyone solved this problem?

I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants