Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QInput cursor position issue #17639

Open
alexgreenpol opened this issue Nov 14, 2024 · 1 comment
Open

QInput cursor position issue #17639

alexgreenpol opened this issue Nov 14, 2024 · 1 comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@alexgreenpol
Copy link

alexgreenpol commented Nov 14, 2024

What happened?

The issue involves the QInput component with a card number mask, which formats input into 4 sections of 4 digits separated by spaces. Specifically, on certain iPhone devices (I checked on IPhone 11 pro max, IOS 17.6.1), when numbers are entered, then deleted up to the space, and characters are input again, the cursor position becomes misaligned.

What did you expect to happen?

There is an issue with the QInput component when using a mask that includes spaces, such as 0000 0000 0000 0000. A video demonstrating this behavior has been attached for further context.

IMG_6806.online-video-cutter.com.mp4

Reproduction URL

https://jsfiddle.net/arp4czv5/4/

How to reproduce?

  1. Five numbers are entered.
  2. One number is deleted, which also removes a space from the mask.
  3. Input is resumed, resulting in the cursor being incorrectly positioned.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Components (quasar)

Platforms/Browsers

Chrome, Safari, iOS

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@github-actions github-actions bot added area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Nov 14, 2024
@mityaua
Copy link

mityaua commented Nov 14, 2024

I can confirm that. Definitely needs fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants