Skip to content

Commit

Permalink
[DataGrid] Fix throw error with onBlur at SVG element (#13028)
Browse files Browse the repository at this point in the history
  • Loading branch information
oukunan authored May 7, 2024
1 parent 339c34e commit 841b482
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 841b482

Please sign in to comment.