wade icon indicating copy to clipboard operation
wade copied to clipboard

[Dropdown] Hide all dropdowns if anything else was clicked

Open egekorkan opened this issue 4 years ago • 2 comments

Two initial thoughts:

  • fire an event whenever the user clicks somewhere outside a dropdown and listen to it in aDropdown
  • listen to the existing event click on document if possible?

egekorkan avatar Jun 01 '20 21:06 egekorkan

Another thought would be to close the menu when not in focus.

FadySalama avatar Jun 03 '20 20:06 FadySalama

@Fady222 Dropdown buttons are also used in other components, that's why your idea unfortunately does not work.

eileenoo avatar Jun 16 '20 11:06 eileenoo