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
CreateReducer.js uses "startsWith" which is unsupported in IE11 #4126
Comments
Thanks for the heads up. That seems to have been introduced in v7.4.0, and should be an easy fix, if you would like to go for it 🙂 |
Any preference how this is done? I was thinking on using this polyfill from MDN. is this polyfill sufficient?
|
Adding polyfills to Redux Form wouldn't be a good idea, but if you mean using its implementation, then yeah, that's an option. An even better one would be to use a regular expression, like |
Yes implementation-wise. Thank you @gustavohenke ! |
PR #4128 with the fix has been merged. Watch out for new releases! |
Hey @gustavohenke @erikras , do you know when there will be a new release with this included? I'd like to use this fix as I'm hitting the same issue, but haven't been able to because there's no release for it yet. Thanks! |
@erikras @gustavohenke any update on this? |
npm package isn't updated from 3 months, this fix was merged 2 months ago |
I don't control the release cycle. |
@erikras We need a release to fix this bug please |
This issue is marked as |
@soavie I'm having this issue as well. how did you get around this using core-js? |
|
I am having this issue in 7.4.2. i have tried to add |
Published fix in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Are you submitting a bug report or a feature request?
bug report
What is the current behavior?
Unable to input text into Redux Form Field in IE11. Results in "TypeError: Object doesn't support property or method 'startsWith'"
What is the expected behavior?
It should be possible to input text without throwing any errors in IE11.
What's your environment?
redux-form 7.4.2
IE11
Other information
Line causing the error:
https://github.com/erikras/redux-form/blob/v7.4.2/src/createReducer.js#L47
Commit that introduced the error:
a97606f
String.prototype.startsWith()
browser support:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
We've been able to work around this by using core-js to polyfill the feature.
The text was updated successfully, but these errors were encountered: