mirror of
https://github.com/discourse/discourse.git
synced 2025-03-11 09:27:34 +08:00

Because of how the dropdown was structured, as long it was in the DOM, all clicks outside the widget would rerender it. This commit introduces `widget-dropdown-body` that handles the `clickOutside` callback and is rendered conditionally, so it won't get called when the dropdown is closed.