Closed WalterProof closed 5 years ago
Bug on Internet Explorer
Which version?
AFAIK IE is dead. Use a modern browser
All version except Edge, see NodeList.forEach
support here https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach#Browser_Compatibility
Sonata is mainly used as a professionnal admin tool, we all know, in enterprise world there can be some inertia concerning tool changing, it's not about the developper but the application users.
If you need IE support, you could use babel if you need support for a legacy browser
Won't fix, because we don't support outdated browsers
IE10+ supports forEach
(https://caniuse.com/#search=foreach)
Environment
Internet Explorer (not Edge)
Sonata packages
Symfony packages
PHP version
Subject
Bug on Internet Explorer
Steps to reproduce
Following https://sonata-project.org/bundles/core/3-x/doc/reference/flash_messages.html# While using the standard layout, and https://github.com/sonata-project/SonataCoreBundle/blob/3.x/src/CoreBundle/Resources/public/js/base.js As I supposed this is the way to integrate flash messages because it is not documented, Since Sonata 3.15.0, I got an error in my browser console:
SCRIPT438: Object doesn't support property or method 'forEach'
and all my JS is broken This bug was recently introduced because of this line https://github.com/sonata-project/SonataCoreBundle/commit/c5dfef1337781fb2b1972b92b8ff8ec4f6458c86#diff-8e6b6994ae2ee0f16eacfe0d4dab7aedR45Expected results
No errors
Actual results
SCRIPT438: Object doesn't support property or method 'forEach'