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

(cherry picked from commit 25b20e9)

(CP triggered by luacmartins)
  • Loading branch information
luacmartins authored and OSBotify committed Sep 18, 2024
1 parent 5a88980 commit 88d80e0
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 88d80e0

Please sign in to comment.