Skip to content

[menu] [submenutrigger] closeDelay not working on SubmenuTrigger #4094

@stenhmodfin

Description

@stenhmodfin

Bug report

Current behavior

When setting closeDelay on a SubmenuTrigger it seems to only be respected when hovering non-item elements in menu such as Separator. Hovering Item closes the submenu instantly.

Expected behavior

I would expect it to honor SubmenuTrigger closeDelay when hovering menu items with submenu open. Unless another submenu is opened perhaps.

Reproducible example

This is the nested menu example from the docs but I added 1000 ms closeDelay on SubmenuTrigger. Open submenu then hover another item from root menu, the submenu closes instantly.

https://stackblitz.com/edit/8lqse2xn?file=src%2FApp.tsx

Base UI version

1.2.0

Which browser are you using?

Chrome

Which OS are you using?

Ubuntu 24

Which assistive tech are you using (if applicable)?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions