mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-02 20:20:30 +08:00
IMMEDIATE FIX TILL MAJOR FIX IS COMMING FOR CSS.ESCAPE
This commit is contained in:
parent
df8a248678
commit
5f86454175
@ -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)];
|
||||
|
Loading…
Reference in New Issue
Block a user