Answer the question
In order to leave comments, you need to log in
How to autofocus a text field in dropdown when clicking on a link?
It is necessary that when the link is clicked, the autofocus field pops up - https://jsfiddle.net/95hg4d8j/
Answer the question
In order to leave comments, you need to log in
setTimeout(() => {
searchblock.focus();
},0);
so do it or similar, it turns out you press focus () works, but the element has not yet appeared and it works in nowhere))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question