Keep the focus on input even after submit button clicked

Is it possible to keep the focus on an input box even after you hit a submit button?

I’ve created my own chat and it works pretty awesome except when you’re typing your message and you hit the little send button but it takes the focus off the input which is annoying. This makes the letters box from your phone disappear which then moves all of my chat down, and my user has to click on the box again to send another message.

I made it where I reset the focus to the input box as soon as I hit send… But it’s still makes the letters disappear and then reappear again which makes the whole chat bounce down and up and feels wonky.

Anyone know how to keep the focus on the input box so even when I click the send button everything stays the same?



Hi there, @shwabbie… I have never used it, but it couldn’t hurt to give this plugin a look.

Best…
Mike

1 Like

Hell yeah… Great find!
Thanks Mike!!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.