fix: revert
gitea/salix-front/pipeline/head There was a failure building this commit
Details
gitea/salix-front/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
9528048b5f
commit
c334c58691
|
@ -214,7 +214,7 @@ onBeforeMount(() => {
|
|||
});
|
||||
|
||||
onMounted(async () => {
|
||||
if ($props.isEditable) document.addEventListener('mousedown', mousedownHandler);
|
||||
if ($props.isEditable) document.addEventListener('click', clickHandler);
|
||||
mode.value =
|
||||
quasar.platform.is.mobile && !$props.disableOption?.card
|
||||
? CARD_MODE
|
||||
|
@ -237,7 +237,7 @@ onMounted(async () => {
|
|||
});
|
||||
|
||||
onUnmounted(async () => {
|
||||
if ($props.isEditable) document.removeEventListener('mousedown', mousedownHandler);
|
||||
if ($props.isEditable) document.removeEventListener('click', clickHandler);
|
||||
});
|
||||
|
||||
watch(
|
||||
|
@ -385,7 +385,7 @@ function hasEditableFormat(column) {
|
|||
if (isEditableColumn(column)) return 'editable-text';
|
||||
}
|
||||
|
||||
const mousedownHandler = async (event) => {
|
||||
const clickHandler = async (event) => {
|
||||
const clickedElement = event.target.closest('td');
|
||||
const isDateElement = event.target.closest('.q-date');
|
||||
const isTimeElement = event.target.closest('.q-time');
|
||||
|
@ -408,7 +408,6 @@ const mousedownHandler = async (event) => {
|
|||
}
|
||||
|
||||
if (isEditableColumn(column)) {
|
||||
event.preventDefault();
|
||||
await renderInput(Number(rowIndex), colField, clickedElement);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue