Skip to content

Commit

Permalink
Merge pull request #30259 from parasharrajat/fix/bubbling-issue-for-e…
Browse files Browse the repository at this point in the history
…dit-amount

Fix: Double page submission on Edit Amount page
  • Loading branch information
tylerkaraszewski authored Oct 25, 2023
2 parents 0e66062 + 5090382 commit a3dd902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/iou/steps/MoneyRequestAmountForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ function MoneyRequestAmountForm({amount, currency, isEditing, forwardedRef, onCu
) : null}
<Button
success
allowBubble
// Prevent bubbling on edit amount Page to prevent double page submission when two CTA are stacked.
allowBubble={!isEditing}
pressOnEnter
medium={isExtraSmallScreenHeight}
style={[styles.w100, canUseTouchScreen ? styles.mt5 : styles.mt2]}
Expand Down

0 comments on commit a3dd902

Please sign in to comment.