diff --git a/apps/desktop/src/components/grid/TemporalCellEditor.vue b/apps/desktop/src/components/grid/TemporalCellEditor.vue index 97b1a94659..63a759f1f0 100644 --- a/apps/desktop/src/components/grid/TemporalCellEditor.vue +++ b/apps/desktop/src/components/grid/TemporalCellEditor.vue @@ -30,6 +30,7 @@ const emit = defineEmits<{ const open = ref(true); const triggerRef = ref(null); let closeHandled = false; +let isCommitting = false; const hasDate = computed(() => props.kind !== "time"); const hasTime = computed(() => props.kind !== "date"); @@ -136,12 +137,16 @@ function setNow() { } function finishCommit() { + if (isCommitting) return; closeHandled = true; + isCommitting = true; emit("commit"); } function finishCancel() { + if (isCommitting) return; closeHandled = true; + isCommitting = true; emit("cancel"); } @@ -200,7 +205,7 @@ function twoDigit(value: string | number): string {
- +
- +
- +
:
- +
:
- +