Skip to content

Commit

Permalink
that was painful
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed May 2, 2024
1 parent a1d2cf2 commit acb31dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bits-ui/src/lib/bits/menu/menu.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class MenuContentState {
const currentTarget = e.currentTarget;
if (!isHTMLElement(target) || !isHTMLElement(currentTarget)) return;

const isKeydownInside = target.closest(`[CONTENT_ATTR]`) === this.root.contentNode.value;
const isKeydownInside = target.closest(`[${CONTENT_ATTR}]`) === this.root.contentNode.value;
const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;
const isCharacterKey = e.key.length === 1;

Expand Down

0 comments on commit acb31dd

Please sign in to comment.