Skip to content

Commit 3e1bd63

Browse files
alex-juaklkv
authored andcommitted
fix(components): fixup 9efb9bd
1 parent 01c46e0 commit 3e1bd63

File tree

1 file changed

+1
-1
lines changed
  • packages/components/src/components/hds/menu-primitive

1 file changed

+1
-1
lines changed

packages/components/src/components/hds/menu-primitive/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class MenuPrimitive extends Component<MenuPrimitiveSignature> {
7878
// due to inconsistent implementation of relatedTarget across browsers we use the activeElement as a fallback
7979
// if the related target is not part of the disclosed content we close the disclosed container
8080
if (
81-
!this.element.contains(
81+
!this._element.contains(
8282
(event.relatedTarget as Node) || (document.activeElement as Node)
8383
)
8484
) {

0 commit comments

Comments
 (0)