We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f28cae commit 12745acCopy full SHA for 12745ac
src/core/event/scroll.js
@@ -1,6 +1,7 @@
1
import {isMobile} from '../util/env'
2
import * as dom from '../util/dom'
3
import Tweezer from 'tweezer.js'
4
+import cssEscape from 'css.escape'
5
6
const nav = {}
7
let hoverOver = false
@@ -131,7 +132,7 @@ export function scrollIntoView(path, id) {
131
132
return
133
}
134
- const section = dom.find('#' + id)
135
+ const section = dom.find('#' + cssEscape(id))
136
section && scrollTo(section)
137
138
const li = nav[getNavKey(path, id)]
0 commit comments