FIX: Toggle search menu when clicking the same button (PR #13781)

Need to use the clickOutside event here, otherwise the widget’s action plus the mouseDownOutside event get both called and the second cancels the first.

GitHub

The title of this pull request changed from “FIX: Toggle search menu when click the same button” to "FIX: Toggle search menu when clicking the same button

This pull request has been mentioned on Discourse Meta. There might be relevant details there: