mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 16:34:26 +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.