mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-21 19:09:29 +00:00
#385: Do not focus search field if current element has value
This commit is contained in:
parent
c47eb7388a
commit
2e693816ae
@ -30,6 +30,10 @@
|
||||
* @param {Event} event
|
||||
*/
|
||||
function focusSearchFieldOnKeyPress(event) {
|
||||
if (event.target.value !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (input === document.activeElement) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user