diff --git a/packages/nc-gui/components/project/spreadsheet/components/editableCell/DateTimePickerCell.vue b/packages/nc-gui/components/project/spreadsheet/components/editableCell/DateTimePickerCell.vue index 07abd59972..6f3566307f 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editableCell/DateTimePickerCell.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editableCell/DateTimePickerCell.vue @@ -65,6 +65,13 @@ export default { } }, mounted() { + // listen dialog click:outside event and save on close + if (this.$refs.picker && this.$refs.picker.$children && this.$refs.picker.$children[0]) { + this.$refs.picker.$children[0].$on('click:outside', () => { + this.$refs.picker.okHandler() + }) + } + if (!this.ignoreFocus) { this.$refs.picker.display = true }