mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-02 12:10:04 +08:00
Update component.js
This commit is contained in:
parent
62d0986b74
commit
f2ff01d91e
@ -171,6 +171,11 @@ function bindEvents() {
|
||||
|
||||
let timeId;
|
||||
// Prevent to Fold sidebar
|
||||
Docsify.dom.on(
|
||||
$search,
|
||||
'click',
|
||||
e => e.target.tagName !== 'A' && e.stopPropagation()
|
||||
);
|
||||
Docsify.dom.on($input, 'input', e => {
|
||||
clearTimeout(timeId);
|
||||
timeId = setTimeout(_ => doSearch(e.target.value.trim()), 100);
|
||||
|
Loading…
Reference in New Issue
Block a user