Skip to content

Commit

Permalink
fix(readonly): issue with shipping methods update
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilip authored and cblanc committed May 15, 2024
1 parent 2035af3 commit b99eb39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ export const newBind = (selectors: Selectors, blocks: boolean = false) => (confi
const countryField = toHtmlElem(parent, outputFields.country);
//@ts-expect-error
const county = toHtmlElem(parent, outputFields.county);
//in case input is readonly when enforced country by owner
if(countryField && isInput(countryField)) {
update(countryField, address.country_iso_2);
}

if(blocks) {
//@ts-expect-error
countryField?.parentElement?.parentElement?.nextSibling?.firstChild.click();
Expand Down

0 comments on commit b99eb39

Please sign in to comment.