Skip to content

Commit

Permalink
Remove IE-related warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai committed May 31, 2024
1 parent 65afab0 commit 1efe736
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/mui-material/src/ImageList/ImageList.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,6 @@ const ImageList = React.forwardRef(function ImageList(inProps, ref) {
[rowHeight, gap, variant],
);

React.useEffect(() => {
if (process.env.NODE_ENV !== 'production') {
// Detect Internet Explorer 8+
if (document !== undefined && 'objectFit' in document.documentElement.style === false) {
console.error(
[
'MUI: ImageList v5+ no longer natively supports Internet Explorer.',
'Use v4 of this component instead, or polyfill CSS object-fit.',
].join('\n'),
);
}
}
}, []);

const style =
variant === 'masonry'
? { columnCount: cols, columnGap: gap, ...styleProp }
Expand Down

0 comments on commit 1efe736

Please sign in to comment.