mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 04:16:49 +00:00
fix: date and dateTime field cell value save issue on blur in canvas
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user