stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Canadian Postal Code Input Does not Strip Extra Space

Open elibroftw opened this issue 2 years ago • 0 comments

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:

  1. Go to open payment sheet
  2. Country as Canada
  3. Click Postal code input
  4. 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:

Screenshot_1694833547

Expected:

Screenshot_1694833593

Smartphone (please complete the following information):

  • Device: Pixel 6 Pro Emulator
  • OS: Android 13

Additional context Add any other context about the problem here.

elibroftw avatar Sep 16 '23 03:09 elibroftw