Skip to content

Commit

Permalink
Fixes deselection when clicking in whitespace in new table (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
eireland authored Sep 23, 2024
1 parent d3da03d commit 4d67625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/src/components/case-table/use-white-space-click.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function useWhiteSpaceClick({ gridRef }: IProps) {
// then the table should be focused and the selection should not be cleared.
// So we track if the table is in focus and if it was in focus before.
const { isTileSelected } = useTileModelContext()
const isFocusedTileRef = useRef(false)
const wasFocusedTileRef = useRef(false)
const isFocusedTileRef = useRef(isTileSelected())
const wasFocusedTileRef = useRef(isTileSelected())
const isFocusedTile = isTileSelected()

// Store the previous focus state
Expand Down

0 comments on commit 4d67625

Please sign in to comment.