Because of the emulation of the click event, there is a delay of more than 300 ms. There was an idea to track the "touchstart" event. Making the code change on lines 33 and 34 works faster, but the focus of the input field is lost. I could not understand where the work is going with the focus.