Browse Source

fix(nc-gui): Fixed issue with json cell

pull/6622/head
Muhammed Mustafa 1 year ago
parent
commit
67da33cfcc
  1. 8
      packages/nc-gui/components/cell/Json.vue

8
packages/nc-gui/components/cell/Json.vue

@ -42,7 +42,9 @@ const localValueState = ref<string | undefined>()
const error = ref<string | undefined>()
const isExpanded = inject(JsonExpandInj, ref(false))
const _isExpanded = inject(JsonExpandInj, ref(false))
const isExpanded = ref(false)
const localValue = computed<string | Record<string, any> | undefined>({
get: () => localValueState.value,
@ -137,6 +139,10 @@ useSelectedCellKeyupListener(active, (e) => {
break
}
})
watch(isExpanded, () => {
_isExpanded.value = isExpanded.value
})
</script>
<template>

Loading…
Cancel
Save