Browse Source

fix(gui): stop mouse event propagation from json cell to avoid unexpected behaviour

re #4760

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4762/head
Pranav C 2 years ago
parent
commit
25129c23fb
  1. 4
      packages/nc-gui/components/cell/Json.vue

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

@ -123,8 +123,8 @@ useSelectedCellKeyupListener(active, (e) => {
<template>
<component :is="isExpanded ? AModal : 'div'" v-model:visible="isExpanded" :closable="false" centered :footer="null">
<div v-if="editEnabled && !readonly" class="flex flex-col w-full">
<div class="flex flex-row justify-between pt-1 pb-2">
<div v-if="editEnabled && !readonly" class="flex flex-col w-full" @mousedown.stop @mouseup.stop @click.stop>
<div class="flex flex-row justify-between pt-1 pb-2" @mousedown.stop>
<a-button type="text" size="small" @click="isExpanded = !isExpanded">
<CilFullscreenExit v-if="isExpanded" class="h-2.5" />

Loading…
Cancel
Save