Open jwoertink opened 2 years ago
Same issue. When using google address autocomplete to fill in form fields, the region is blank, even if country is set before region.
As a workaround, I added a 2 second delay after setting the country before setting the region.
I have a setup sort of like this:
Then I have a button on the page that will load a different object passing in a different
location
. When this happens, the country is populated correctly, but the region is always blank, unless I remove thecountry
option fromregion-select
. Though, that leads to other issues if the region isn't a U.S. state....My guess is maybe it's trying to populate both country and region at the same time, but there's some sort of race condition where region has to wait until after country has loaded..