Skip to content

Commit

Permalink
Merge pull request #49370 from nkdengineer/fix/49368
Browse files Browse the repository at this point in the history
[CP Staging] fix cannot go to the next page by enter key in amount page
  • Loading branch information
luacmartins authored Sep 18, 2024
2 parents be13f3f + c119850 commit 25b20e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function KeyboardShortcutComponent({isDisabled = false, isLoading = false, onPre
const isFocused = useIsFocused();
const activeElementRole = useActiveElementRole();

const shouldDisableEnterShortcut = useMemo(() => accessibilityRoles.includes(activeElementRole ?? ''), [activeElementRole]);
const shouldDisableEnterShortcut = useMemo(() => accessibilityRoles.includes(activeElementRole ?? '') && activeElementRole !== CONST.ROLE.PRESENTATION, [activeElementRole]);

const keyboardShortcutCallback = useCallback(
(event?: GestureResponderEvent | KeyboardEvent) => {
Expand Down

0 comments on commit 25b20e9

Please sign in to comment.