diff --git a/src/pages/settings/tax-settings/components/calculate-taxes/components/AURegions.tsx b/src/pages/settings/tax-settings/components/calculate-taxes/components/AURegions.tsx index 5b83ac099..c23ac80b4 100644 --- a/src/pages/settings/tax-settings/components/calculate-taxes/components/AURegions.tsx +++ b/src/pages/settings/tax-settings/components/calculate-taxes/components/AURegions.tsx @@ -93,11 +93,15 @@ export function AURegions() { >
+ onClick={(e) => { + if (e.target instanceof HTMLInputElement) { + return; + } + divClickIntercept( `tax_data.regions.AU.subregions.${value[0]}.apply_tax` - ) - } + ); + }} > { + console.log(id); + const checkbox = document.getElementById(id.replace('.apply_tax', '')); checkbox?.click(); }; @@ -94,15 +97,19 @@ export function EURegions() { regions?.map((value: [string, TaxSetting], index) => (
+ onClick={(e) => { + if (e.target instanceof HTMLInputElement) { + return; + } + divClickIntercept( `tax_data.regions.EU.subregions.${value[0]}.apply_tax` - ) - } + ); + }} > + + (EU) {t('sales_above_threshold')}

} + > + + handleChange('tax_data.regions.EU.has_sales_above_threshold', v) + } + /> +
); } diff --git a/src/pages/settings/tax-settings/components/calculate-taxes/components/USRegions.tsx b/src/pages/settings/tax-settings/components/calculate-taxes/components/USRegions.tsx index 3567618fa..118bc4597 100644 --- a/src/pages/settings/tax-settings/components/calculate-taxes/components/USRegions.tsx +++ b/src/pages/settings/tax-settings/components/calculate-taxes/components/USRegions.tsx @@ -98,11 +98,15 @@ export function USRegions() { >
+ onClick={(e) => { + if (e.target instanceof HTMLInputElement) { + return; + } + divClickIntercept( `tax_data.regions.US.subregions.${value[0]}.apply_tax` - ) - } + ); + }} >