diff --git a/packages/nc-gui/components/cell/Json.vue b/packages/nc-gui/components/cell/Json.vue index fa28ad10a0..b6e327ef3e 100644 --- a/packages/nc-gui/components/cell/Json.vue +++ b/packages/nc-gui/components/cell/Json.vue @@ -42,7 +42,9 @@ const localValueState = ref() const error = ref() -const isExpanded = inject(JsonExpandInj, ref(false)) +const _isExpanded = inject(JsonExpandInj, ref(false)) + +const isExpanded = ref(false) const localValue = computed | undefined>({ get: () => localValueState.value, @@ -137,6 +139,10 @@ useSelectedCellKeyupListener(active, (e) => { break } }) + +watch(isExpanded, () => { + _isExpanded.value = isExpanded.value +})