dropdownButton unexpected behaviour

I am using the dropdownButton component in one of my views and set the ‘openOnHover’ attribute to ‘true’ to make handling more convenient for users.

However, the dropdown-menu wont close when the mouse exits the component, so the opened list just stays there until the user clicks anywhere else.

Any suggestions?

Jmix version: 2.6.0
Jmix Studio version: 2.6.3-251

Hi!

Since the dropdownButton component is based on the Vaadin menuBar component, this is a Vaadin-specific issue.
Anyway, this is a known issue: [menu-bar] Close menu on mouseleave when using openOnHover · Issue #589 · vaadin/web-components · GitHub

You can try suggested workaround: An example for Vaadin 23/24 how to with JavaScript create automatically closing menu · GitHub

Best regards,
Dmitriy

Thank you very much, the workaround fixed the behaviour!