Browse Source

fix: Datepicker - if readonly skip modifying active state

pull/7304/head
Pranav C 10 months ago
parent
commit
16341ec37d
  1. 1
      packages/nc-gui/components/cell/DateTimePicker.vue

1
packages/nc-gui/components/cell/DateTimePicker.vue

@ -253,6 +253,7 @@ useSelectedCellKeyupListener(active, (e: KeyboardEvent) => {
const cellClickHook = inject(CellClickHookInj, null) const cellClickHook = inject(CellClickHookInj, null)
const cellClickHandler = () => { const cellClickHandler = () => {
if (readOnly.value) return
open.value = (active.value || editable.value) && !open.value open.value = (active.value || editable.value) && !open.value
} }

Loading…
Cancel
Save