diff --git a/packages/standard-components/src/DataGrid/customRenderer.js b/packages/standard-components/src/DataGrid/customRenderer.js index 3869aa9c29..1b9bec0aae 100644 --- a/packages/standard-components/src/DataGrid/customRenderer.js +++ b/packages/standard-components/src/DataGrid/customRenderer.js @@ -36,6 +36,9 @@ function attachmentRenderer(params) { } function dateRenderer(params) { const container = document.createElement("div") + const toggle = (e) => { + params.setValue(e.detail[0][0]) + } const datePickerInstance = new DatePicker({ target: container, @@ -44,5 +47,7 @@ function dateRenderer(params) { } }); + datePickerInstance.$on('change', toggle) + return container } \ No newline at end of file