vendredi 12 juillet 2019

Cursor resets itself at beginning of textarea on input

I have a basic textarea looking like this:

  <textarea class="text-input__input"
        name="message"
        placeholder="incidents.input_placeholder"
        rows="1"
        minHeight="21"
        required
        #textInput
        [(ngModel)]="message">
  </textarea>

used for a website. When typing in this textarea on an Android device on landscape the cursor is reset at the start of the input at every character typed. Thus if we type "hello" this comes out as "olleh". This behavior is observed only on Android devices. The textarea behaves normally on emulator and on iOs devices. I tried to switch off autocorect but it didn't help.

Any idea where this might come from ?




Aucun commentaire:

Enregistrer un commentaire