From d86a67eecd5b95c6afee85f176e31fa7420fb8d0 Mon Sep 17 00:00:00 2001 From: futurouz Date: Mon, 6 May 2024 21:12:48 +0700 Subject: [PATCH 1/2] [DataGrid] fix throw error on blur with svg element --- packages/x-data-grid/src/hooks/features/focus/useGridFocus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-data-grid/src/hooks/features/focus/useGridFocus.ts b/packages/x-data-grid/src/hooks/features/focus/useGridFocus.ts index f39ae2f3a9732..fb01b27c54e83 100644 --- a/packages/x-data-grid/src/hooks/features/focus/useGridFocus.ts +++ b/packages/x-data-grid/src/hooks/features/focus/useGridFocus.ts @@ -331,7 +331,7 @@ export const useGridFocus = ( const handleBlur = React.useCallback>( (_, event) => { - if (event.relatedTarget?.className.includes(gridClasses.columnHeader)) { + if (event.relatedTarget?.getAttribute('class')?.includes(gridClasses.columnHeader)) { return; } logger.debug(`Clearing focus`); From 50fca76ab32b1f5014a03882a49cbf43965d1173 Mon Sep 17 00:00:00 2001 From: Rom Grk Date: Tue, 7 May 2024 14:57:45 -0400 Subject: [PATCH 2/2] ci: run