-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
IE11: Object doesn't support property or method 'forEach' #1058
Comments
+1 running into exactly the same issue on Firefox older than 50 |
@m3l1x I added the suggered polyfill to fix the issue: // missing forEach on NodeList for IE11
if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = Array.prototype.forEach;
} |
@panthony @m3l1x I created ember-cli-polyfill-importer and used it to import our polyfills, including nodelist foreach that this issue is about. Could you please test your apps with ember-paper master to confirm that the polyfill is being added? Please make sure that IE or FF < 50 (or any other version that doesn't have nodelist forEach) are included in your |
@miguelcobain (Un)fortunately I'm not equipped to test something on IE11. What about this issue? Shall I close it? I'm afraid others might be surprised by this issue too because it means that OOTB ember-paper is not compatible with IE11, unless you add this polyfill addon. |
@miguelcobain @panthony I gonna test it on monday and report. |
It is working for me on IE11! Please reopen if issue persists. |
I have this issue on IE 11 in
paper-dialog-inner
because of the following line:As IE11 does not support
.forEach
onquerySelectorAll
result (see here).The fix could be either to transform
imageElements
as an array[...document.querySelectorAll()]
or add a small polyfill to addforEach
onNodeList
as suggested on developer.mozilla.orgThe text was updated successfully, but these errors were encountered: