Skip to content

Commit

Permalink
IMMEDIATE FIX TILL MAJOR FIX IS COMMING FOR CSS.ESCAPE
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Mar 9, 2020
1 parent df8a248 commit 5f86454
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/event/scroll.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Tweezer from 'tweezer.js';
import cssEscape from 'css.escape';
import { isMobile } from '../util/env';
import * as dom from '../util/dom';
import config from '../config';
Expand Down Expand Up @@ -144,7 +143,7 @@ export function scrollIntoView(path, id) {
return;
}
const topMargin = config().topMargin;
const section = dom.find('#' + cssEscape(id));
const section = dom.find('#' + id);
section && scrollTo(section, topMargin);

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

0 comments on commit 5f86454

Please sign in to comment.