Browse Source

fix: save datetime on 'click:outside' event

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2356/head
Pranav C 2 years ago
parent
commit
411a7d9658
  1. 7
      packages/nc-gui/components/project/spreadsheet/components/editableCell/DateTimePickerCell.vue

7
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
}

Loading…
Cancel
Save