Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/core/event/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function getAndActive(router, el, isParent, autoTitle) {
const href = a.getAttribute('href');
const node = isParent ? a.parentNode : a;

a.title = a.innerText;
a.title = a.title || a.innerText;

if (hash.indexOf(href) === 0 && !target) {
target = a;
Expand All @@ -95,7 +95,6 @@ export function getAndActive(router, el, isParent, autoTitle) {
dom.toggleClass(node, 'remove', 'active');
}
});

if (autoTitle) {
dom.$.title = target
? target.title || `${target.innerText} - ${title}`
Expand Down