From c90f9ee5bc9b5b390622ec31eb9f298c2e5a68a0 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 28 Oct 2021 08:07:01 +0200 Subject: [PATCH] add mod_input_address_index to collection event: better addition of the event listener to the DOM --- .../Resources/public/vuejs/Address/mod_input_address_index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js index 9c5f9eaa7..0f39c5e75 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/Address/mod_input_address_index.js @@ -88,6 +88,6 @@ document.addEventListener('DOMContentLoaded', (_e) => addAddressInput(document.querySelectorAll('input[type="hidden"][data-input-address]')) ); -window.addEventListener('collection-add-entry', (_e) => - addAddressInput(document.querySelectorAll('input[type="hidden"][data-input-address]')) +window.addEventListener('collection-add-entry', (e) => + addAddressInput(e.detail.entry.querySelectorAll('input[type="hidden"][data-input-address]')) ); \ No newline at end of file