fix: refs #8388 enhance click handler to ignore dialog interactions
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
3295c18847
commit
88a9299aa9
|
@ -392,12 +392,14 @@ function hasEditableFormat(column) {
|
|||
}
|
||||
|
||||
const clickHandler = async (event) => {
|
||||
const clickedElement = event.target.closest('td');
|
||||
const isDateElement = event.target.closest('.q-date');
|
||||
const isTimeElement = event.target.closest('.q-time');
|
||||
const isQSelectDropDown = event.target.closest('.q-select__dropdown-icon');
|
||||
const el = event.target;
|
||||
const clickedElement = el.closest('td');
|
||||
const isDateElement = el.closest('.q-date');
|
||||
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) {
|
||||
await destroyInput(editingRow.value, editingField.value);
|
||||
|
|
Loading…
Reference in New Issue