mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-29 09:12:35 -04:00
Fixed Unicode slugifier breaking table of contents blur on scroll
This commit is contained in:
@@ -53,8 +53,9 @@ export default class Blur {
|
||||
|
||||
/* Index anchor node offsets for fast lookup */
|
||||
this.anchors_ = [].reduce.call(this.els_, (anchors, el) => {
|
||||
const hash = decodeURIComponent(el.hash)
|
||||
return anchors.concat(
|
||||
document.getElementById(el.hash.substring(1)) || [])
|
||||
document.getElementById(hash.substring(1)) || [])
|
||||
}, [])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user