History

When navigating to a fragment inside a `<details>`, open it…

…this matches browsers' native behaviour.

Calum Smith committed 1 year ago

Commit d6f16be1 parent dd2c3e52 files · +11 −0Browse files

Showing the changes to assets/javascripts/views/content (1 of 2 files). Show all

Unified · Split

assets/javascripts/views/content/content.js+1−0
@@ -114,6 +114,7 @@ app.views.Content = class Content extends app.View { · 113 unmodified lines
114114 $.scrollToWithImageLock(el, this.scrollEl, "top", {
115115 margin: this.scrollEl === this.el ? 0 : $.offset(this.el).top,
116116 });
117+ $.openDetailsAncestors(el);
117118 $.highlight(el, { className: "_highlight" });
118119 } else {
119120 this.scrollTo(this.scrollMap[this.routeCtx.state.id]);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t