Skip to content

Commit

Permalink
removed some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
snowystinger committed Sep 20, 2024
1 parent cbdde6f commit d087bfd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/@react-aria/test-utils/src/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,7 @@ export class MenuTester {
act(() => menu.focus());
}

if (option) {
await this.keyboardNavigateToOption({option});
} else {
// valid?
await this.user.keyboard(optionText);
}
await this.keyboardNavigateToOption({option});
await this.user.keyboard(`[${keyboardActivation}]`);
} else {
if (interactionType === 'mouse') {
Expand Down

0 comments on commit d087bfd

Please sign in to comment.