mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-29 03:47:04 +08:00
Update component.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user