mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix when adding multiple pick address type form in a collection
This commit is contained in:
parent
dcf5f1ed66
commit
a04c499af0
@ -6,12 +6,12 @@ import App from './App.vue';
|
|||||||
const i18n = _createI18n(addressMessages);
|
const i18n = _createI18n(addressMessages);
|
||||||
|
|
||||||
const addAddressInput = (inputs) => {
|
const addAddressInput = (inputs) => {
|
||||||
|
console.log(inputs)
|
||||||
inputs.forEach(el => {
|
inputs.forEach(el => {
|
||||||
let
|
let
|
||||||
addressId = el.value,
|
addressId = el.value,
|
||||||
uniqid = el.dataset.inputAddress,
|
uniqid = el.dataset.inputAddress,
|
||||||
container = document.querySelector('div[data-input-address-container="' + uniqid + '"]'),
|
container = el.parentNode.querySelector('div[data-input-address-container="' + uniqid + '"]'),
|
||||||
isEdit = addressId !== '',
|
isEdit = addressId !== '',
|
||||||
addressIdInt = addressId !== '' ? parseInt(addressId) : null
|
addressIdInt = addressId !== '' ? parseInt(addressId) : null
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user