diff --git a/packages/nc-gui/components/cell/Checkbox.vue b/packages/nc-gui/components/cell/Checkbox.vue index c6bfecc871..38bc569923 100644 --- a/packages/nc-gui/components/cell/Checkbox.vue +++ b/packages/nc-gui/components/cell/Checkbox.vue @@ -96,10 +96,9 @@ useSelectedCellKeyupListener(active, (e) => { height: isForm || isExpandedFormOpen || isGallery || isEditColumnMenu ? undefined : `max(${(rowHeight || 1) * 1.8}rem, 41px)`, }" - tabindex="0" + :tabindex="readOnly ? -1 : 0" @click="onClick(false, $event)" @keydown.enter.stop="onClick(true, $event)" - :tabindex="readOnly ? -1 : 0" >
import type { VNodeRef } from '@vue/runtime-core' -import { EditColumnInj, EditModeInj, IsExpandedFormOpenInj, IsFormInj, inject, useVModel, ReadonlyInj } from '#imports' +import { EditColumnInj, EditModeInj, IsExpandedFormOpenInj, IsFormInj, ReadonlyInj, inject, useVModel } from '#imports' interface Props { // when we set a number, then it is number type diff --git a/packages/nc-gui/components/cell/Duration.vue b/packages/nc-gui/components/cell/Duration.vue index f1facc875d..8805b09031 100644 --- a/packages/nc-gui/components/cell/Duration.vue +++ b/packages/nc-gui/components/cell/Duration.vue @@ -6,6 +6,7 @@ import { EditModeInj, IsExpandedFormOpenInj, IsFormInj, + ReadonlyInj, computed, convertDurationToSeconds, convertMS2Duration, @@ -13,7 +14,6 @@ import { inject, parseProp, ref, - ReadonlyInj, } from '#imports' interface Props { diff --git a/packages/nc-gui/components/cell/Email.vue b/packages/nc-gui/components/cell/Email.vue index b6b4b82bed..065557e818 100644 --- a/packages/nc-gui/components/cell/Email.vue +++ b/packages/nc-gui/components/cell/Email.vue @@ -6,11 +6,11 @@ import { IsExpandedFormOpenInj, IsFormInj, IsSurveyFormInj, + ReadonlyInj, computed, inject, useI18n, validateEmail, - ReadonlyInj, } from '#imports' interface Props { diff --git a/packages/nc-gui/components/cell/Integer.vue b/packages/nc-gui/components/cell/Integer.vue index 4e042280dd..c9867a1073 100644 --- a/packages/nc-gui/components/cell/Integer.vue +++ b/packages/nc-gui/components/cell/Integer.vue @@ -1,6 +1,6 @@