IE11 missing slider: Object doesn’t support property or method “forEach”
-
Hi, viewing a page in Internet Explorer 11 this error appears in the console while no images are displayed:
SCRIPT438: Object doesn't support property or method "forEach" gutenslider.js (1,776)
I’m using WordPress 5.5.3 and Gutenslider 4.4.9. You can also see this problem on gutenslider.org.
I found the following fix:
Add this code at the beginning of gutenslider.js to borrow the missing function from Array:if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; }
Could you include that in the next update? Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘IE11 missing slider: Object doesn’t support property or method “forEach”’ is closed to new replies.