#385: Do not focus search field if current element has value
This commit is contained in:
@@ -30,6 +30,10 @@
|
|||||||
* @param {Event} event
|
* @param {Event} event
|
||||||
*/
|
*/
|
||||||
function focusSearchFieldOnKeyPress(event) {
|
function focusSearchFieldOnKeyPress(event) {
|
||||||
|
if (event.target.value !== undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (input === document.activeElement) {
|
if (input === document.activeElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user