focus() mobile chrome issue
HTML
<input id="input" type="text">
<button id="button">Button</button>
JavaScript
const btn = document.getElementById('button')
btn.addEventListener('click', () => {
alert('clicked')
const input = document.getElementById('input')
input.focus()
})
btn.click()