Fix errors not showing in sticky column and clear cell value on backspace press

This commit is contained in:
Andrew Kingston 2023-04-16 11:56:27 +01:00
parent 6da9da4267
commit b867d359f4
3 changed files with 5 additions and 3 deletions

View File

@ -40,8 +40,8 @@
{column} {column}
{row} {row}
{invertY} {invertY}
invertX={idx >= $columnHorizontalInversionIndex}
{rowFocused} {rowFocused}
invertX={idx >= $columnHorizontalInversionIndex}
highlighted={rowHovered || rowFocused || reorderSource === column.name} highlighted={rowHovered || rowFocused || reorderSource === column.name}
selected={rowSelected} selected={rowSelected}
rowIdx={idx} rowIdx={idx}

View File

@ -132,6 +132,9 @@
</SheetCell> </SheetCell>
{#if $stickyColumn} {#if $stickyColumn}
<DataCell <DataCell
{row}
{cellId}
{rowFocused}
selected={rowSelected} selected={rowSelected}
highlighted={rowHovered || rowFocused} highlighted={rowHovered || rowFocused}
rowIdx={idx} rowIdx={idx}
@ -139,8 +142,6 @@
selectedUser={$selectedCellMap[cellId]} selectedUser={$selectedCellMap[cellId]}
width={$stickyColumn.width} width={$stickyColumn.width}
column={$stickyColumn} column={$stickyColumn}
{row}
{cellId}
/> />
{/if} {/if}
</div> </div>

View File

@ -67,6 +67,7 @@
changeFocusedRow(1) changeFocusedRow(1)
break break
case "Delete": case "Delete":
case "Backspace":
deleteSelectedCell() deleteSelectedCell()
break break
case "Enter": case "Enter":