Browse Source

fix: save datetime on 'click:outside' event

Signed-off-by: Pranav C <pranavxc@gmail.com>
feat/0523-export-schema
Pranav C 2 years ago committed by Raju Udava
parent
commit
68178fa4a3
  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() { 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) { if (!this.ignoreFocus) {
this.$refs.picker.display = true this.$refs.picker.display = true
} }

Loading…
Cancel
Save