Fixed close button on user view doesnt work

This commit is contained in:
2025-11-16 17:34:21 +01:00
parent 618b46868a
commit cf9a7c2a11

View File

@@ -694,7 +694,7 @@
}); });
function registerRowDetailviewClick(row) { function registerRowDetailviewClick(row) {
const detailModalEl = document.getElementById('detailModal'); const detailModalEl = document.getElementById('detailModal');
const detailModal = new bootstrap.Modal(detailModalEl); const detailModal = bootstrap.Modal.getOrCreateInstance(detailModalEl);
row.addEventListener('click', (e) => { row.addEventListener('click', (e) => {
// Dont trigger when clicking inside the action buttons // Dont trigger when clicking inside the action buttons
if (e.target.closest('button')) return; if (e.target.closest('button')) return;