-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix~issues 1110 #1111
fix~issues 1110 #1111
Changes from 8 commits
d32d91b
b4e7b21
fed6a83
1c43abe
7d38a32
6ac71f9
f9d0c72
62d0986
f2ff01d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,11 +171,6 @@ function bindEvents() { | |
|
||
let timeId; | ||
// Prevent to Fold sidebar | ||
Docsify.dom.on( | ||
$search, | ||
'click', | ||
e => e.target.tagName !== 'A' && e.stopPropagation() | ||
); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you comment this instead of delete. also add why this is being commented. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. He said here #1111 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, this is just for future reference. we can add a link to this PR instead of details. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, I tested the mobile end and he'll affect the sidebar. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you share the details in a separate review so that he can take a look |
||
Docsify.dom.on($input, 'input', e => { | ||
clearTimeout(timeId); | ||
timeId = setTimeout(_ => doSearch(e.target.value.trim()), 100); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After deletion, the sidebar will be collapsed when using search on the mobile end, making search unavailable.