question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Collapse / Expand not working correctly for some headers

See original GitHub issue

Another 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 image

THE WORKING ONE:

image image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
1Mapcommented, May 31, 2017

@webron Thanks, it is now working 100% - Appreciate - You can close this ticket.

0reactions
webroncommented, May 31, 2017

@1Map have you had a chance to test it?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found