diff --git a/src/ui/views/Table/components/DataGrid/GridCell/GridDateCell/GridDateCell.svelte b/src/ui/views/Table/components/DataGrid/GridCell/GridDateCell/GridDateCell.svelte index eab81032..159da66a 100644 --- a/src/ui/views/Table/components/DataGrid/GridCell/GridDateCell/GridDateCell.svelte +++ b/src/ui/views/Table/components/DataGrid/GridCell/GridDateCell/GridDateCell.svelte @@ -8,7 +8,7 @@ import type { GridColDef } from "../../dataGrid"; export let value: Optional; - let cachedValue: Optional; // store the proposing value + let cachedValue: Optional = value; // store the proposing value export let onChange: (value: Optional) => void; export let column: GridColDef; export let rowindex: number; diff --git a/src/ui/views/Table/components/DataGrid/GridCell/GridDatetimeCell/GridDatetimeCell.svelte b/src/ui/views/Table/components/DataGrid/GridCell/GridDatetimeCell/GridDatetimeCell.svelte index 2bb6ff03..e3a90da6 100644 --- a/src/ui/views/Table/components/DataGrid/GridCell/GridDatetimeCell/GridDatetimeCell.svelte +++ b/src/ui/views/Table/components/DataGrid/GridCell/GridDatetimeCell/GridDatetimeCell.svelte @@ -8,7 +8,7 @@ import type { GridColDef } from "../../dataGrid"; export let value: Optional; - let cachedValue: Optional; + let cachedValue: Optional = value; // store the proposing value export let onChange: (value: Optional) => void; export let column: GridColDef; export let rowindex: number;