Browse Source

fix(gui-v2): use right injection key

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3005/head
Pranav C 2 years ago
parent
commit
33af6f18aa
  1. 3
      packages/nc-gui-v2/components/cell/Decimal.vue

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

@ -1,5 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, inject, onMounted, ref } from '#imports' import { computed, inject, onMounted, ref } from '#imports'
import { EditModeInj } from '~/context'
interface Props { interface Props {
modelValue: number | null modelValue: number | null
@ -13,7 +14,7 @@ const props = defineProps<Props>()
const emits = defineEmits<Emits>() const emits = defineEmits<Emits>()
const editEnabled = inject<boolean>('editEnabled') const editEnabled = inject<boolean>(EditModeInj)
const root = ref<HTMLInputElement>() const root = ref<HTMLInputElement>()

Loading…
Cancel
Save