Skip to main content
Solved

Dropdown menu disappears when leaving the hover area (which it should not)


Wolle
  • New Participant
  • 9 replies

Here is my problem:

I have a component (for reuse). This component has a background that casts a clear shadow on hover. To prevent objects that also have a shadow from inheriting it (because that looks awful), the background is only used to display the shadow on hover. All other elements are arranged in their own group/box.

Above the background component is a box with another icon button that is only visible on hover. On click, the dropdown of this icon button is then expanded. I make it visible and invisible again with a Boolean String on Hover. Note: Even Mouse Enter or Mouse Leave doesnโ€™t fix my problem.

When I move the mouse pointer out of the parent box, the icon button also disappears. Because the dropdown goes beyond the box and if I select an entry in the select box with the mouse, I leave the parent box and the dropdown disappears.

I have summarized the conditions in a picture because unfortunately I am not allowed to share the prototype.

Is there perhaps a simple solution to get around this? Because this seems to me to be a very classic scenario in a UI?

Thank you.

Best answer by Wolle

I have now been able to solve it myself.

Mouse Leave did not work. But Mouse Leave AND Add Delay solves the problem. You should read dialogs carefully ๐Ÿ˜‰

Bildschirmfoto 2024-05-15 um 09.05.11

View original

2 replies

Wolle
  • Author
  • New Participant
  • 9 replies
  • Answer
  • May 15, 2024

I have now been able to solve it myself.

Mouse Leave did not work. But Mouse Leave AND Add Delay solves the problem. You should read dialogs carefully ๐Ÿ˜‰

Bildschirmfoto 2024-05-15 um 09.05.11


Celine_D
Figmate
  • Community Support
  • 3381 replies
  • May 15, 2024

Hey @Wolle,
Glad to hear you have found a fix! Thank you for sharing it.
I have marked as solved for your topic ๐Ÿ™‚


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings