Skip to content

Commit

Permalink
Mitigation: Custom Amounts CTA not being tappable unless keyboard is …
Browse files Browse the repository at this point in the history
…manually dismissed (#13994)
  • Loading branch information
iamgabrielma authored Sep 30, 2024
2 parents cca5b2f + e807202 commit 89d2c06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

20.7
-----
- [*] Payments: Mitigated Custom Amounts issue where CTA was not tappable unless keyboard was manually dismissed first [https://github.com/woocommerce/woocommerce-ios/pull/13994]
- [internal] Enhanced error logging in the `OrderDetailsDataSource` class to improve crash diagnostics. [https://github.com/woocommerce/woocommerce-ios/pull/14018]

20.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,21 @@ struct AddCustomAmountView: View {
})
}
.frame(width: geometry.size.width)
.ignoresSafeArea(.keyboard, edges: .bottom)
.onTapGesture {
dismissKeyboard()
}
}
}
.wooNavigationBarStyle()
}
}


private extension AddCustomAmountView {
func dismissKeyboard() {
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
}
}

private extension AddCustomAmountView {
enum Layout {
Expand Down

0 comments on commit 89d2c06

Please sign in to comment.