Skip to content

Commit

Permalink
Update packages/components/src/components/post-megadropdown/post-mega…
Browse files Browse the repository at this point in the history
…dropdown.tsx

Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com>
  • Loading branch information
myrta2302 and alizedebray authored Dec 19, 2024
1 parent e9d9bd4 commit 84810c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ export class PostMegadropdown {

private handleFocusout(event: FocusEvent) {
const relatedTarget = event.relatedTarget as HTMLElement;
const megaDd = this.popoverRef.querySelector('.megadropdown');
if (!megaDd.contains(relatedTarget)) {
const megadropdown= this.popoverRef.querySelector('.megadropdown');
if (!megadropdown.contains(relatedTarget)) {
this.hide();
}
}
Expand Down

0 comments on commit 84810c1

Please sign in to comment.