This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Google Chrome Autofill Incorrectly Maps 2-Letter State Codes in WooCommerce Checkout Blocks #11322
Labels
block: checkout
Issues related to the checkout block.
type: bug
The issue/PR concerns a confirmed bug.
type: community contribution
Describe the bug
When using Google Chrome's autofill feature, states are saved using their 2-letter postal codes (e.g., Massachusetts is saved as "MA"). However, when this autofill is applied to the WooCommerce checkout blocks, the state selection is incorrect. For instance, when "MA" is autofilled, the system mistakenly selects "Maine" instead of "Massachusetts".
To reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the postal code for the state (MA) to be mapped to the correct state (Massachusetts)
Screenshots
Environment
WordPress:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
This issue is not exclusive to the clean WordPress setup (described in the reproduce steps). We have also observed it on the staging site for our T-Shirt Ecommerce business, which we are in the process of migrating to use checkout blocks. This happens on both desktop and mobile.
The text was updated successfully, but these errors were encountered: