cascader icon indicating copy to clipboard operation
cascader copied to clipboard

Possible to pass as prop delay for expandTrigger='hover' ?

Open namiwa opened this issue 3 years ago • 1 comments

Currently, with expandTrigger='hover', component changes selection too quickly. Would it be possible to expose a delay prop into the component to control this behavior?

The current hover sandbox found in the docs site is showing a sandbox error

The sand box below is forked with a working example: https://codesandbox.io/s/confident-swartz-e1kxin?file=/Cascader.tsx:7876-7879

namiwa avatar Nov 29 '22 08:11 namiwa

Hi @namiwa, I've been getting a bit stuck with this issue as well. When trying to navigate to a submenu in my app I keep accidentally opening a different submenu.

It reminded me of this blog post from a while back about creating a 'safe' triangle from the initial mouse position to the submenu: https://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown

It looks like react-aria has implemented this in their submenus: https://react-spectrum.adobe.com/blog/creating-a-pointer-friendly-submenu-experience.html

If I can get this user-intent triangle working in rc-cascader, would folks be interested in me opening a PR?

gilicaspi avatar Oct 30 '24 22:10 gilicaspi