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

.find not supported in IE 11 #1774

Closed
stranzhay opened this issue Jan 29, 2020 · 1 comment · Fixed by #1776 or #1854 · May be fixed by #2788
Closed

.find not supported in IE 11 #1774

stranzhay opened this issue Jan 29, 2020 · 1 comment · Fixed by #1776 or #1854 · May be fixed by #2788
Assignees

Comments

@stranzhay
Copy link
Contributor

  • reactstrap version #8.4.1
  • react version #16.3.2

What is happening?

In IE11, Array.prototype.find throws a console error here:

return subtreeRoots && subtreeRoots.length && subtreeRoots.find(subTreeRoot=> isInDOMSubtree(element, subTreeRoot));

Error message in console

Object doesn't support property or method 'find'

Suggested solution

Use Array.prototype.filter instead

@stranzhay
Copy link
Contributor Author

I will go ahead and fix this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment