Skip to content

Commit

Permalink
fix(Datagrid): add optional chain for focus row expander hook (carbon…
Browse files Browse the repository at this point in the history
…-design-system#5363)

Co-authored-by: kennylam <[email protected]>
  • Loading branch information
matthewgallo and kennylam authored Jun 5, 2024
1 parent cfb15e6 commit b54cbad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const useFocusRowExpander = ({
const rowExpander = activeRow[0].querySelector(
`.${blockClass}__row-expander`
);
rowExpander.focus();
rowExpander?.focus();
}
}, [
instance?.tableId,
Expand Down

0 comments on commit b54cbad

Please sign in to comment.