Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Fix IE11 crash on demo pages #14466

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Feb 8, 2019

Without context easily the most overengineered code I pushed to master in the last couple of years.

I think the original code was slightly different and necessary with the old demo loader. The new demo loader simplified the behavior but I missed a good refactoring chance.

@eps1lon eps1lon added bug 🐛 Something doesn't work docs Improvements or additions to the documentation labels Feb 8, 2019
@@ -74,19 +74,14 @@ function MarkdownDocs(props) {
const jsType = isHooks ? 'jsHooks' : 'js';
const rawType = isHooks ? 'rawHooks' : 'raw';

const tsFilename = !isHooks
? sourceFiles.find(sourceFileName => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array.prototype.find is not supported in IE 11 an caused the crash

@oliviertassinari oliviertassinari merged commit af1eeae into mui:next Feb 8, 2019
@eps1lon eps1lon deleted the docs/fix-i11-crash branch February 8, 2019 14:59
eps1lon added a commit to eps1lon/material-ui that referenced this pull request Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants