FIX: ensures popover is hidden when changing route (#7300)
This commit is contained in:
parent
4b1b135ede
commit
13a6a04cad
|
@ -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…
Reference in New Issue