We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01c46e0 commit 3e1bd63Copy full SHA for 3e1bd63
packages/components/src/components/hds/menu-primitive/index.ts
@@ -78,7 +78,7 @@ export default class MenuPrimitive extends Component<MenuPrimitiveSignature> {
78
// due to inconsistent implementation of relatedTarget across browsers we use the activeElement as a fallback
79
// if the related target is not part of the disclosed content we close the disclosed container
80
if (
81
- !this.element.contains(
+ !this._element.contains(
82
(event.relatedTarget as Node) || (document.activeElement as Node)
83
)
84
) {
0 commit comments