Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

How to prevent input from losing focus on other element click?

$
0
0

@whitebeard86 wrote:

Hello,

How can I prevent an input element from losing focus (and therefore closing the input keyboard on mobile devices) when another element is pressed?

I am building a chat module in my app and it's annoying that every time the user pushes the send button the keyboard hides and the input looses focus.

I've already tried to use the "focus()" and "click()" function (on the input element) when the user pushes the send button but it doesn't work.

Thanks,
J.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>