Skip to content

Commit 46848d7

Browse files
committed
fixup! feat(aria/ui-patterns): add initial menu pattern
1 parent c56034a commit 46848d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aria/ui-patterns/menu/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export class MenuBarPattern<V> {
460460

461461
/** Closes the menubar and refocuses the root menu bar item. */
462462
close() {
463-
this.inputs.activeItem()?.close({refocus: true});
463+
this.inputs.activeItem()?.close({refocus: this.isFocused()});
464464
}
465465
}
466466

0 commit comments

Comments
 (0)