Accordion.js does not correctly trigger a subsequent accordion in IE11 #1206
Labels
browser-dependency
Track browser bugs of particular interest; not a practices issue but may impact APG.
Feedback
Issue raised by or for collecting input from people outside APG task force
wontfix
Task force doesn't believe there is a need to make the requested change
We have a page going to production that uses Bootstrap tab panes and multiple accordions to break apart complex content into a process that (we hope) users will benefit from. During testing, a user (using IE 11) navigated to a subsequent tab and noticed that none of the accordions trigger. We later found that all accordions past the first one fail to trigger in Internet Explorer.
IE reports line 109 as producing an error (no "forEach" defined for the accordion prototype). In testing, I found that changing line 109 from:
accordion.querySelectorAll('.accordion-trigger').forEach(function (trigger) {
to
Array.prototype.slice.call(accordion.querySelectorAll('.accordion-trigger')).forEach(function (trigger) {
completely restored functionality.
The text was updated successfully, but these errors were encountered: