Skip to content

InputMask: Input cursor moves before the dash when the value is cleared up to the dash #8372

@rkolodich

Description

@rkolodich

Describe the bug

When I try to enter a value in an InputMask on a Samsung Android device and clear the value up to the dash, the cursor moves before the dash instead of after it.

Reports describe this behavior for Android phones and tablets.
Samsung Galaxy A32
Chrome 143.0.7499.192
Android 13 Build/TP1A.220624.014

It also does not work correctly in your own showcase on primevue.org in Samsung Android Chrome, but it works as expected if I switch the site to the desktop mode.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://primevue.org/inputmask

Environment

Vue, PrimeVue and Samsung Phone on Android 13 with Chrome

Vue version

3.5.x

PrimeVue version

4.5.x

Node version

No response

Browser(s)

Chrome 143.0.7499.192 (Android 13; SM-A325F Build/TP1A.220624.014)

Steps to reproduce the behavior

  1. Open the site on a Chrome browser in an Samsung Android device.
  2. Try to enter a valid value (e.g with mask 99-999999)
  3. Clear the written value to the dash
  4. The cursor moves before the dash

Expected behavior

The cursor moves after the dash when I clear the value up to the dash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions