diff --git a/src/core/event/sidebar.js b/src/core/event/sidebar.js index 7ca72d94c..0e1f028c1 100644 --- a/src/core/event/sidebar.js +++ b/src/core/event/sidebar.js @@ -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;