mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 14:23:39 -04:00
Focus search after reset
This commit is contained in:
@@ -148,7 +148,7 @@ export default class Result {
|
||||
}, 250)
|
||||
|
||||
/* Execute search on new input event */
|
||||
} else if (ev.type === "keyup") {
|
||||
} else if (ev.type === "focus" || ev.type === "keyup") {
|
||||
const target = ev.target
|
||||
if (!(target instanceof HTMLInputElement))
|
||||
throw new ReferenceError
|
||||
|
||||
Reference in New Issue
Block a user