Skip to content

Commit 5f86454

Browse files
committed
IMMEDIATE FIX TILL MAJOR FIX IS COMMING FOR CSS.ESCAPE
1 parent df8a248 commit 5f86454

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/event/scroll.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Tweezer from 'tweezer.js';
2-
import cssEscape from 'css.escape';
32
import { isMobile } from '../util/env';
43
import * as dom from '../util/dom';
54
import config from '../config';
@@ -144,7 +143,7 @@ export function scrollIntoView(path, id) {
144143
return;
145144
}
146145
const topMargin = config().topMargin;
147-
const section = dom.find('#' + cssEscape(id));
146+
const section = dom.find('#' + id);
148147
section && scrollTo(section, topMargin);
149148

150149
const li = nav[getNavKey(path, id)];

0 commit comments

Comments
 (0)