Focus search box when page opened.

This commit is contained in:
koirand 2020-02-24 01:11:02 +09:00
parent 1fe952e1a5
commit b939893c3a

View file

@ -96,6 +96,7 @@ const initUI = () => {
$('#searchBoxIcon').click(() => {
$('#searchBoxInput').val('')
$('#searchBoxInput').trigger('keyup')
$('#searchBoxInput').focus()
})
// Event when chenging query
@ -126,6 +127,9 @@ const initUI = () => {
// Emit keyup event for when the query is already setted with browser back etc.
$('#searchBoxInput').trigger('keyup')
// Focus at searchBox
$('#searchBoxInput').focus()
}
/**