Browse Source

Merge pull request #2356 from nocodb/fix/2354-save-date-on-outsidr-click

Fix: Save datetime on  'click:outside' event
pull/2359/head
աɨռɢӄաօռɢ 3 years ago committed by GitHub
parent
commit
30b1d2be27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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