-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace intl-tel-input
component with the WooCommerce PhoneNumberInput component
#8581
Comments
@mordeth What are the two instances where we are still using the old component? |
The two instances where the old component exists are:
I have described them in the issue description. |
Note: I'm assigning the "checkout payments" focus label because it would be either this, or in-person payments (which we don't have a label for). The bundle size effects on checkout could be more significant, which is also why I preferred the label. |
Please add your planning poker estimate with Zenhub @FangedParakeet |
After spending a couple days working on this I run into the following issue: The
I think we have two options here:
|
Now that the node 20 upgrade has been completed I ran into another issue. It looks like This can be confirmed by going to the blocks checkout and executing It also seems that, at this moment, WooCommerce Core doesn't expose any functions to register the In this draft PR #9155 I tried a workaround which consisted in forcing the inclusion of |
One more issue that is definitely a blocker. In the settings, we store This is what is saved (note that I'm using a fake phone number for testing purposes): This is what happens after I reload: As you can see, an incorrect country is guessed, since that country happens to have different validation rules for phone numbers, it automatically causes an error in the page and disables the "Save Changes" button. With that in mind, I think we should close this issue or defer it until the country guessing in @FangedParakeet what do you think? |
@mordeth, any thoughts on the comment above? Is there a workaround here or is |
Description
A new lightweight woocommerce/woocommerce#40335 has been introduced into the WooCommerce core to replace intl-tel-input in WooPayments. This change significantly reduces the bundle size and provides a React-based customizable component.
However, we are still using the intl-tel-input component in two areas within WooPayments that require replacement with the new component.
The two instances where the old component exists are:
Acceptance criteria
The text was updated successfully, but these errors were encountered: