stripe-react-native
stripe-react-native copied to clipboard
Canadian Postal Code Input Does not Strip Extra Space
Describe the bug If you paste a postal code such as "K0E 0B2" into the React Native Postal Code element box, the UI accepts the space and cuts off the 2.
To Reproduce Steps to reproduce the behavior:
- Go to open payment sheet
- Country as Canada
- Click Postal code input
- Paste "K0E 0B2" and see that the 2 is cut off
Expected behavior
The entire postal code should be accepted.
Screenshots
If applicable, add screenshots to help explain your problem.
Actual:
Expected:
Smartphone (please complete the following information):
- Device: Pixel 6 Pro Emulator
- OS: Android 13
Additional context Add any other context about the problem here.