A client that uses the address autocomplete function had the issue that the autocomplete would not always initialize and only appeared after switching to another country and back.
After checking the logs I saw that an undefined variable causes a KO binding to fail and thus making the autocomplete fail to initialize and also causing cascading errors when trying to change billing addresses in the checkout.
A simple solution was made by overriding the file :
view/frontend/web/js/lib/postcode-eu-autocomplete-address.js as line 678
A client that uses the address autocomplete function had the issue that the autocomplete would not always initialize and only appeared after switching to another country and back.
After checking the logs I saw that an undefined variable causes a KO binding to fail and thus making the autocomplete fail to initialize and also causing cascading errors when trying to change billing addresses in the checkout.
A simple solution was made by overriding the file : view/frontend/web/js/lib/postcode-eu-autocomplete-address.js as line 678
options.context = options.context.toLowerCase();
to
if(options.context){ options.context = options.context.toLowerCase(); }
Kind Regard Rob Theeuwes