Automatic Keyboard in Input with Ionic

Asked

Viewed 211 times

0

I need an Ionic routine that calls the Keyboard from the mobile phone for an ion-input when entering the page.

An example page would be:

<ion-content padding>
  <form>
    <ion-row>
      <ion-col>
        <ion-input #user name="user" type="text" placeholder="Usuário"></ion-input>
      </ion-col>
    </ion-row>
  </form>
</ion-content>

What I want is to use Ionic’s Navigating Lifecycle (I believe in this case using ionViewDidEnter) to bring the focus and Keyboard into the field automatically, I’ve tried some codes but unfortunately sometimes it works and other times it doesn’t, thanks in advance.

  • I don’t understand your question. what do you mean by bring the focus?

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.