You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With an already open dropdown, clicking outside the container will not close it. That and all other event handlers attached in the open observer will not have run.
Within this observer, various event handlers are attached amongst other things.
None if this will run if the dropdown is initially open (presumably due to waitUntilFirstUpdate), meaning things like "close on document click" will not work.
The text was updated successfully, but these errors were encountered:
Describe the bug
With an already open dropdown, clicking outside the container will not close it. That and all other event handlers attached in the
open
observer will not have run.To Reproduce
Steps to reproduce the behavior:
Run this somewhere and click outside the dropdown, it won't close.
Click the dropdown, then reopen it, and clicking outside it will now close it.
Additional information
shoelace/src/components/dropdown/dropdown.ts
Lines 336 to 337 in 68603f9
Within this observer, various event handlers are attached amongst other things.
None if this will run if the dropdown is initially open (presumably due to
waitUntilFirstUpdate
), meaning things like "close on document click" will not work.The text was updated successfully, but these errors were encountered: