Browse Source

fix: hide fill handle for read only cells

pull/7202/head
mertmit 9 months ago
parent
commit
c5ce04cf76
  1. 8
      packages/nc-gui/components/smartsheet/grid/Table.vue

8
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -1005,7 +1005,13 @@ const showFillHandle = computed(
!readOnly.value &&
!editEnabled.value &&
(!selectedRange.isEmpty() || (activeCell.row !== null && activeCell.col !== null)) &&
!dataRef.value[(isNaN(selectedRange.end.row) ? activeCell.row : selectedRange.end.row) ?? -1]?.rowMeta?.new,
!dataRef.value[(isNaN(selectedRange.end.row) ? activeCell.row : selectedRange.end.row) ?? -1]?.rowMeta?.new &&
activeCell.col !== null &&
!(
isLookup(fields.value[activeCell.col]) ||
isRollup(fields.value[activeCell.col]) ||
isFormula(fields.value[activeCell.col])
),
)
watch(

Loading…
Cancel
Save