Collapse / Expand not working correctly for some headers
See original GitHub issueAnother irritating bug I found was the following, regarding collapsing/expanding sections:
Taking the following div example from the UI, the expand/collapse only works on all children within the <h4 class="opblock-tag"> html tag, and not on the <h4 class="opblock-tag"> itself. So, you have to click almost dead center inside the h4.
<div class="opblock-tag-section">
<h4 class="opblock-tag">
<span>auth</span>
<small>Authorization Section</small>
<button class="expand-operation" title="Expand operation">
<svg class="arrow" width="20" height="20">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#large-arrow"></use>
</svg>
</button>
</h4>
<noscript></noscript>
</div>
UPDATE:
I actually found out that the click does work on the h4, but not on the padded area around the h4. You have to click in the center of the h4. If you click on the padded area around the h4 then click does not work. Strange is, it does work correctly on the Models header, although that also has a padded area around its h4.
THE NON-WORKING ONE:
image

THE WORKING ONE:
image

Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
expand / collapse doesn't work on heading if it's set later
In the screenshot attached you can see that while the text is set as heading 2 it doesn't show the expand / collapse...
Read more >Bootstrap Collapse not Collapsing - Stack Overflow
I had this problem and the problem was bootstrap.js wasn't load in Yii2 framework.First check is jquery loaded in inspect and then check...
Read more >Expand/Collapse arrow fails to appear if a class matching a ...
Further investigation reveals that if the header content contains a span with a class matching the regular expression k-i-arrow.* then the ...
Read more >Collapse/Expand toggles not functional in Board Detail View
When viewing a Scrum or Kanban board's Backlog or Active Sprints, you can click an issue to bring up the detail view in...
Read more >Collapse and Expand Word Documents
2. To collapse or expand alll headings, right click a heading and hover over "Expand/Collapse." Choose either "Expand All Headings" or "Collapse ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@webron Thanks, it is now working 100% - Appreciate - You can close this ticket.
@1Map have you had a chance to test it?