retejs / context-menu-plugin

https://retejs.org
MIT License
11 stars 43 forks source link

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

Open madureira opened 1 month ago

madureira commented 1 month ago

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

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