Browse Source

fix: allow bubbling through nc-locked-overlay

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5847/head
mertmit 1 year ago
parent
commit
9c7fe983aa
  1. 4
      packages/nc-gui/components/smartsheet/Cell.vue
  2. 2
      packages/nc-gui/components/smartsheet/Grid.vue

4
packages/nc-gui/components/smartsheet/Cell.vue

@ -232,8 +232,8 @@ onUnmounted(() => {
<div
v-if="(isLocked || (isPublic && readOnly && !isForm) || isSystemColumn(column)) && !isAttachment(column)"
class="nc-locked-overlay"
@click.stop.prevent
@dblclick.stop.prevent
@click.prevent
@dblclick.prevent
/>
</template>
</template>

2
packages/nc-gui/components/smartsheet/Grid.vue

@ -572,7 +572,7 @@ async function clearCell(ctx: { row: number; col: number } | null, skipUpdate =
}
function makeEditable(row: Row, col: ColumnType) {
if (!hasEditPermission || editEnabled || isView) {
if (!hasEditPermission || editEnabled || isView || isLocked.value || readOnly.value) {
return
}

Loading…
Cancel
Save