From fdc93fafa189741d13ed27a338d3221ecc43bd4a Mon Sep 17 00:00:00 2001 From: Bilal Shafi Date: Thu, 6 Jun 2024 14:23:44 +0500 Subject: [PATCH] [DataGrid] Clean up IE ramnants from the codebase (#13390) --- packages/x-data-grid/src/components/GridRow.tsx | 7 ------- .../src/components/toolbar/GridToolbarQuickFilter.tsx | 7 ------- 2 files changed, 14 deletions(-) diff --git a/packages/x-data-grid/src/components/GridRow.tsx b/packages/x-data-grid/src/components/GridRow.tsx index 5bcef38335557..134786356f652 100644 --- a/packages/x-data-grid/src/components/GridRow.tsx +++ b/packages/x-data-grid/src/components/GridRow.tsx @@ -177,13 +177,6 @@ const GridRow = React.forwardRef(function GridRow( const classes = useUtilityClasses(ownerState); - React.useLayoutEffect(() => { - if (rowHeight === 'auto' && ref.current && typeof ResizeObserver === 'undefined') { - // Fallback for IE - apiRef.current.unstable_storeRowHeightMeasurement(rowId, ref.current.clientHeight); - } - }, [apiRef, rowHeight, rowId]); - React.useLayoutEffect(() => { if (currentPage.range) { // The index prop is relative to the rows from all pages. As example, the index prop of the diff --git a/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx b/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx index 2257fce0a7d40..8881a0a86f240 100644 --- a/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx +++ b/packages/x-data-grid/src/components/toolbar/GridToolbarQuickFilter.tsx @@ -39,13 +39,6 @@ const GridToolbarQuickFilterRoot = styled(TextField, { '& .MuiInput-underline:before': { borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`, }, - [`& input[type=search]::-ms-clear, -& input[type=search]::-ms-reveal`]: { - /* clears the 'X' icon from IE */ - display: 'none', - width: 0, - height: 0, - }, [`& input[type="search"]::-webkit-search-decoration, & input[type="search"]::-webkit-search-cancel-button, & input[type="search"]::-webkit-search-results-button,