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 {
|
export default {
|
||||||
name: "d-popover",
|
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 =>
|
$("#main").on("click.d-popover mouseenter.d-popover", SELECTORS, event =>
|
||||||
showPopover(event)
|
showPopover(event)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue