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

The "delay" option does not work in version 2. #90

Open
1 task done
madureira opened this issue Jul 27, 2024 · 0 comments
Open
1 task done

The "delay" option does not work in version 2. #90

madureira opened this issue Jul 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@madureira
Copy link

Describe the bug

First of all, congratulations and thank you for your excellent work.

I'm using version 2.0.3 of the context-menu-plugin and I'm trying to set the delay option, but it doesn't seem to have any effect.

I am using rete version 2.0.3.

I followed the information described on this documentation page.

I created a fork of the example available in the documentation to make it easier to visualize the problem.

Example to reproduce

https://codesandbox.io/s/rete-js-v2-context-menu-forked-59d9tq?file=/src/editor.ts

How to reproduce

  • Add the delay attribute with the value 0 when instantiating the ContextMenuPlugin class
  • Add more than one submenu item
  • Hover over a menu option and then hover over another option

Expected behavior

I expected the submenus to disappear immediately when pointing the mouse to another menu option, given that I set the delay to 0

Dependencies

Codesandbox

Platform

Chrome Version 127.0.6533.72, Node.js v20.15.1

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@madureira madureira added the bug Something isn't working label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant