Skip to content

Commit

Permalink
fix(navigation): corrige bug de fermeture sur safari
Browse files Browse the repository at this point in the history
  • Loading branch information
zellerbaptiste committed Dec 6, 2023
1 parent 12c3ebc commit 25cdc0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/navigation/script/navigation/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Navigation extends api.core.CollapsesGroup {
super.init();
this.clicked = false;
this.out = false;
this.listen('focusout', this.focusOutHandler.bind(this));
this.addEmission(api.core.RootEmission.CLICK, this._clickOut.bind(this));
this.listen('mousedown', this.mouseDownHandler.bind(this));
this.listenClick({ capture: true });
}
Expand All @@ -30,7 +30,7 @@ class Navigation extends api.core.CollapsesGroup {
if (e.target.matches('a, button') && !e.target.matches('[aria-controls]') && !e.target.matches(api.core.DisclosureSelector.PREVENT_CONCEAL)) this.index = -1;
}

focusOutHandler (e) {
_clickOut () {
if (!this.isBreakpoint(api.core.Breakpoints.LG)) return;
this.out = true;
this.requestPosition();
Expand Down

0 comments on commit 25cdc0d

Please sign in to comment.