Skip to content

Commit

Permalink
[DataGrid] Clean up IE ramnants from the codebase (#13390)
Browse files Browse the repository at this point in the history
  • Loading branch information
MBilalShafi authored Jun 6, 2024
1 parent b8f5010 commit b72e1db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions packages/x-data-grid/src/components/GridRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,6 @@ const GridRow = React.forwardRef<HTMLDivElement, GridRowProps>(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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b72e1db

Please sign in to comment.