Closed sanzeeb3 closed 3 years ago
Hi @sanzeeb3,
Thank you for submitting the issue. However, I can’t reproduce it using the steps you provided. Everything is working as expected on my end.
I tested in both the latest Chrome and the latest Firefox (each without any plugins or extensions installed), using a fresh install of WooCommerce (5.2.2) and WordPress 5.7.1, both on macOS:
Chrome
Firefox
Please provide us with more details about the issue which may help us to evaluate it further.
For example, if you can let us know which which browser/OS was used in the screenshot that was provided in the initial report, that can help us further investigate. Thank you!
I'm also using the latest Chrome and without any other plugins or extensions installed. Just to note, you'll need to click on the input and not on the Country/Region label, or simply double-click. Also, you probably don't have anything to autofill.
Hello @sanzeeb3
I could not replicate the behavior as well
When autocomplete is disabled in Chrome:
When it is enabled:
Browser:
Am I missing any step there, or are there other steps to replicate the issue that we're missing?
That's all the steps. Maybe you're missing that you need to click on the 'Country/Region' field when there is a text cursor not when there's a hand cursor. I just tested on a clean install with only WC active and incognito mode in Chrome and there's still the issue. If it's helpful, here's the screencast video: https://a.supportally.com/EvPQ2d. The auto-fill would be helpful if you can fill, it's only displaying the country, but it can't autofill with it.
@sanzeeb3 Thanks again for the screen recording. Interestingly, I could replicate this behavior on a different test site:
When the City and Zipcode fields were automatically filled, the country wasn't.
I'm wondering if this is because the field accepts entries in Country / State / Region format and the browser isn't able to recognize the way it is currently set up.
Also, this looks like it should belong in the WooCommerce Admin Repo.
It requires further feedback from the WooCommerce Core team. I am adding the needs developer feedback
label to this issue so that the Core team could take a look.
Please note it may take a few days for them to get to this issue. Thank you for your patience.
Agree with the suggestion here, ideally autocomplete should work for more convenience. Moving this to WooCommerce Admin repo as they are correct team to handle this.
This is behaving a little different on my end.
After manually enabling address autocompletion in the latest Chrome (v92.0.4515.131), and adding an address, the drop-down appears for every field except for country. If I choose to select the autocomplete in those fields, all fields (including country) populate correctly.
I'm not sure we actually even want the browser autocomplete displaying over our existing autocompletion on the country field?
That said, are there any other details that made the difference in triggering this behavior @AashikP ? Is autocompletion working correctly on the other fields?
@joelclimbsthings I agree that we can let the browser field intact. That said, other fields are not reliable / consistent as well. For example:
Is it likely that the Country field is blocking autocomplete of other fields as well? For example, when I place the cursor on the first field, the city/zip code is not automatically filled.
Is it likely that the Country field is blocking autocomplete of other fields as well? For example, when I place the cursor on the first field, the city/zip code is not automatically filled.
@AashikP I was able to reproduce this issue as well, and I think your case above might be correct that the typeahead autocomplete was blocking the rest of the fields. This is not the case for every address and must be related to the format of the country and state.
I did make some recent changes to the Country/Region field that address most of the issues mentioned in this issue as part of https://github.com/woocommerce/woocommerce-admin/issues/5523.
These changes will be released as part of WC Admin 2.7
, you can test the changes out in this beta version here.
@AashikP when I re-tested the above scenario it was working correctly with the 2.7 beta.
I also disabled typeahead on the country/region field which should fix the issue @sanzeeb3 was facing.
We can leave this open until 2.7
is officially released, but let us know if you do notice other issues with the changes above.
@louwie17 Sorry for the delay in response here.
I can confirm that things are working as expected with WooCommerce Admin 2.7 installed:
Thanks for checking, @AashikP! Closing this issue, feel free to reopen if the problem persists.
Prerequisites (mark completed items with an [x]):
Describe the bug There’s an annoying auto-fill by the browser in the Country/Region field in the setup wizard. The auto-fill isn’t correct and disturbing to move ahead with the setup.
Expected behavior Autocomplete in that field can be turned off.
Current behaviour Autocomplete for that field is off but I found that:
so,
<input autocomplete="nope"
does fix the issue.Steps to reproduce the bug (We need to be able to reproduce the bug in order to fix it.) Steps to reproduce the bug:
Screenshots https://ibb.co/4Np8YrY
Isolating the problem (mark completed items with an [x]):
WordPress Environment