fix: date and dateTime field cell value save issue on blur in canvas

This commit is contained in:
Ramesh Mane
2026-03-25 13:56:59 +00:00
parent 16c6d5403d
commit 6955b412b8
5 changed files with 36 additions and 0 deletions

View File

@@ -312,6 +312,12 @@ const cellClickHandler = () => {
if (readOnly.value || open.value) return
open.value = active.value || editable.value
}
onBeforeUnmount(() => {
if (tempDate.value && tempDate.value.isValid() && !localState.value?.isSame(tempDate.value)) {
saveChanges(tempDate.value)
}
})
onUnmounted(() => {
cellClickHook?.off(cellClickHandler)
})