From 5f86454175aff5576bcfad8ff94401c9b37db5d5 Mon Sep 17 00:00:00 2001 From: Anix Date: Mon, 9 Mar 2020 18:01:45 +0530 Subject: [PATCH] IMMEDIATE FIX TILL MAJOR FIX IS COMMING FOR CSS.ESCAPE --- src/core/event/scroll.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/event/scroll.js b/src/core/event/scroll.js index ae6d3d4..7458ec0 100644 --- a/src/core/event/scroll.js +++ b/src/core/event/scroll.js @@ -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'; @@ -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)];