mirror of
https://github.com/discourse/discourse.git
synced 2025-10-03 17:21:20 +08:00
FIX: ensures popover is hidden when changing route (#7300)
This commit is contained in:
parent
4b1b135ede
commit
13a6a04cad
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@ const SELECTORS =
|
|||
export default {
|
||||
name: "d-popover",
|
||||
|
||||
initialize() {
|
||||
initialize(container) {
|
||||
const router = container.lookup("router:main");
|
||||
router.on("routeWillChange", hidePopover);
|
||||
|
||||
$("#main").on("click.d-popover mouseenter.d-popover", SELECTORS, event =>
|
||||
showPopover(event)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue