mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-05 12:59:44 +00:00
add mod_input_address_index to collection event: better addition of the event listener to the DOM
This commit is contained in:
@@ -88,6 +88,6 @@ document.addEventListener('DOMContentLoaded', (_e) =>
|
|||||||
addAddressInput(document.querySelectorAll('input[type="hidden"][data-input-address]'))
|
addAddressInput(document.querySelectorAll('input[type="hidden"][data-input-address]'))
|
||||||
);
|
);
|
||||||
|
|
||||||
window.addEventListener('collection-add-entry', (_e) =>
|
window.addEventListener('collection-add-entry', (e) =>
|
||||||
addAddressInput(document.querySelectorAll('input[type="hidden"][data-input-address]'))
|
addAddressInput(e.detail.entry.querySelectorAll('input[type="hidden"][data-input-address]'))
|
||||||
);
|
);
|
Reference in New Issue
Block a user