Skip to content

Commit

Permalink
[DataGrid] fix throw error on blur with svg element
Browse files Browse the repository at this point in the history
  • Loading branch information
oukunan committed May 6, 2024
1 parent c51b73d commit d86a67e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export const useGridFocus = (

const handleBlur = React.useCallback<GridEventListener<'columnHeaderBlur'>>(
(_, event) => {
if (event.relatedTarget?.className.includes(gridClasses.columnHeader)) {
if (event.relatedTarget?.getAttribute('class')?.includes(gridClasses.columnHeader)) {
return;
}
logger.debug(`Clearing focus`);
Expand Down

0 comments on commit d86a67e

Please sign in to comment.