Skip to content

bug: [iOS] ion-input cursor jumps to end on input #24727

@tetsuwanadam

Description

@tetsuwanadam

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

On iOS 15.3, in an ion-input with existing text, if you set the cursor at the beginning or in the middle of the existing text and type a character, the cursor jumps to the end of the input.

Expected Behavior

As you type the cursor should stay after the typed character, regardless of where in the input text you are typing.

Steps to Reproduce

In an ion-input with existing text, move the cursor to the beginning or middle of the text and type a character.
I believe this issue arose either with the iOS 15.3 update or possibly the Ionic Vue 6.0.4 update.

Code Reproduction URL

https://github.com/tetsuwanadam/ionic-test/tree/ion-input-ios-cursor-issue

Ionic Info

Ionic:

Ionic CLI : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/vue 6.0.5

Capacitor:

Capacitor CLI : 3.4.0
@capacitor/android : not installed
@capacitor/core : 3.4.0
@capacitor/ios : 3.4.0

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v16.1.0 (/usr/local/bin/node)
npm : 7.24.1
OS : macOS Big Sur

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions