diff --git a/packages/nc-gui/components/smartsheet/VirtualCell.vue b/packages/nc-gui/components/smartsheet/VirtualCell.vue index 4ec2045752..99aa7c7ddb 100644 --- a/packages/nc-gui/components/smartsheet/VirtualCell.vue +++ b/packages/nc-gui/components/smartsheet/VirtualCell.vue @@ -5,6 +5,7 @@ import { CellValueInj, ColumnInj, IsFormInj, + IsGridInj, RowInj, inject, isBarcode, @@ -40,7 +41,10 @@ provide(ActiveCellInj, active) provide(RowInj, row) provide(CellValueInj, toRef(props, 'modelValue')) +const isGrid = inject(IsGridInj, ref(false)) + const isForm = inject(IsFormInj, ref(false)) + function onNavigate(dir: NavigateDir, e: KeyboardEvent) { emit('navigate', dir) @@ -50,7 +54,8 @@ function onNavigate(dir: NavigateDir, e: KeyboardEvent) {