fix: refs #8388 enhance click handler to ignore dialog interactions
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jorge Penadés 2025-05-13 10:21:03 +02:00
parent 3295c18847
commit 88a9299aa9
1 changed files with 7 additions and 5 deletions

View File

@ -392,12 +392,14 @@ function hasEditableFormat(column) {
} }
const clickHandler = async (event) => { const clickHandler = async (event) => {
const clickedElement = event.target.closest('td'); const el = event.target;
const isDateElement = event.target.closest('.q-date'); const clickedElement = el.closest('td');
const isTimeElement = event.target.closest('.q-time'); const isDateElement = el.closest('.q-date');
const isQSelectDropDown = event.target.closest('.q-select__dropdown-icon'); const isTimeElement = el.closest('.q-time');
const isQSelectDropDown = el.closest('.q-select__dropdown-icon');
const isDialog = el.closest('.q-dialog');
if (isDateElement || isTimeElement || isQSelectDropDown) return; if (isDateElement || isTimeElement || isQSelectDropDown || isDialog) return;
if (clickedElement === null) { if (clickedElement === null) {
await destroyInput(editingRow.value, editingField.value); await destroyInput(editingRow.value, editingField.value);