Skip to content

Commit f2ff01d

Browse files
authored
Update component.js
1 parent 62d0986 commit f2ff01d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugins/search/component.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ function bindEvents() {
171171

172172
let timeId;
173173
// Prevent to Fold sidebar
174+
Docsify.dom.on(
175+
$search,
176+
'click',
177+
e => e.target.tagName !== 'A' && e.stopPropagation()
178+
);
174179
Docsify.dom.on($input, 'input', e => {
175180
clearTimeout(timeId);
176181
timeId = setTimeout(_ => doSearch(e.target.value.trim()), 100);

0 commit comments

Comments
 (0)