mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 00:32:42 -04:00
Fix broken selectors for numeric anchors
This commit is contained in:
@@ -43,7 +43,7 @@ export default class Blur {
|
||||
|
||||
/* Index anchor node offsets for fast lookup */
|
||||
this.anchors_ = [].map.call(this.els_, el => {
|
||||
return document.querySelector(el.hash)
|
||||
return document.getElementById(el.hash.substring(1))
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user