-
Notifications
You must be signed in to change notification settings - Fork 48.3k
Default props for inherited components not working in IE10 #6929
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
Comments
on the codepen page, it works fine. it renders 'this is a test message' @JoeVP |
Using IE10? Hmm, is your browser configured in some way other than the default? Edit for clarification: I tested on a clean modern.IE VM Further edit for clarification: Appears to work in IE11+ |
Confirmed, I see the same behavior on IE10. @JoeVP The inheritance pattern is not a priority for us (also this affects only legacy browsers), but we would probably take a PR to fix this if you'd like to write up a fix. |
@JoeVP I would try the classes transform with loose mode + transform-proto-to-assign if you are using babel - ref http://babeljs.io/docs/usage/caveats/#internet-explorer |
Looks like this might be a potential fix, but I haven't tested for any other side effects yet:
|
@jimfb It seems this was fixed recently (6.14.0) in babel (babel/babel#3527). Should I do a PR to update |
Fixes facebook#6929 See babel/babel#3527 for more details
Default props declared on a base class are not found by inheriting classes in IE10. This was observed in react
0.14.7
and15.1.0
. The example and codepen below should help reproduce.http://codepen.io/anon/pen/zBxBwV?editors=0011
The text was updated successfully, but these errors were encountered: