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 addAddressInput = (inputs) => {
|
||||
|
||||
console.log(inputs)
|
||||
inputs.forEach(el => {
|
||||
let
|
||||
addressId = el.value,
|
||||
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 !== '',
|
||||
addressIdInt = addressId !== '' ? parseInt(addressId) : null
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user