Browse Source

fix(gui-v2): date time picker disable

pull/3169/head
Wing-Kam Wong 2 years ago
parent
commit
9d3f3ec900
  1. 3
      packages/nc-gui-v2/components/cell/DateTimePicker.vue

3
packages/nc-gui-v2/components/cell/DateTimePicker.vue

@ -1,5 +1,6 @@
<script setup lang="ts">
import dayjs from 'dayjs'
import { ReadonlyInj } from '#imports'
interface Props {
modelValue: string | null | undefined
@ -68,7 +69,7 @@ watch(
:input-read-only="true"
:dropdown-class-name="randomClass"
:open="readOnly ? false : open"
:disabled="!editEnabled"
:disabled="readOnly"
@click="open = !open"
@ok="open = !open"
>

Loading…
Cancel
Save