Skip to content

Commit

Permalink
Removed bug: setFocus in TableCellComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
annekekleppe committed Sep 17, 2024
1 parent d0ef943 commit 4c58ca6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@
onMount(() => {
box.refreshComponent = refresh;
box.setFocus = setFocus;
row = box.row;
column = box.column;
});
afterUpdate(() => {
box.refreshComponent = refresh;
box.setFocus = setFocus;
// selection is handled here because TableCells are not included in the RenderComponent
let isSelected: boolean = $selectedBoxes.includes(box);
cssClass = (isSelected ? "table-cell-component-selected" : "table-cell-component-unselected");
Expand Down

0 comments on commit 4c58ca6

Please sign in to comment.