Skip to content

Commit

Permalink
fix: sidebar title error (#1360)
Browse files Browse the repository at this point in the history
* fix: sidebar title error

* Update sidebar.js
  • Loading branch information
sy-records committed Aug 26, 2020
1 parent b353ace commit 2100fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 Down

1 comment on commit 2100fc3

@vercel
Copy link

@vercel vercel bot commented on 2100fc3 Aug 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.