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 df8a248 commit 5f86454Copy full SHA for 5f86454
src/core/event/scroll.js
@@ -1,5 +1,4 @@
1
import Tweezer from 'tweezer.js';
2
-import cssEscape from 'css.escape';
3
import { isMobile } from '../util/env';
4
import * as dom from '../util/dom';
5
import config from '../config';
@@ -144,7 +143,7 @@ export function scrollIntoView(path, id) {
144
143
return;
145
}
146
const topMargin = config().topMargin;
147
- const section = dom.find('#' + cssEscape(id));
+ const section = dom.find('#' + id);
148
section && scrollTo(section, topMargin);
149
150
const li = nav[getNavKey(path, id)];
0 commit comments