You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The query selector you use for accordion headings/panels contained within an ol/ul list returns all descendant headings/panels in the main accordion (as well as the nested ones).
First of all, great job!
The query selector you use for accordion headings/panels contained within an ol/ul list returns all descendant headings/panels in the main accordion (as well as the nested ones).
Currently:
panels = doc.querySelectorAll('#' + self.id + ' li > ' + widgetPanel);
headings = doc.querySelectorAll('#' + self.id + ' li > ' + widgetHeading);
Should be:
panels = doc.querySelectorAll('#' + self.id + ' > li > ' + widgetPanel);
headings = doc.querySelectorAll('#' + self.id + ' > li > ' + widgetHeading);
The text was updated successfully, but these errors were encountered: