Skip to content

Commit 2100fc3

Browse files
authored
fix: sidebar title error (#1360)
* fix: sidebar title error * Update sidebar.js
1 parent b353ace commit 2100fc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/event/sidebar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function getAndActive(router, el, isParent, autoTitle) {
8686
const href = a.getAttribute('href');
8787
const node = isParent ? a.parentNode : a;
8888

89-
a.title = a.innerText;
89+
a.title = a.title || a.innerText;
9090

9191
if (hash.indexOf(href) === 0 && !target) {
9292
target = a;

0 commit comments

Comments
 (0)