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

Wrong cursor position when typing inside a string bad character #163

Closed
Draftangel opened this issue May 31, 2023 · 4 comments
Closed

Wrong cursor position when typing inside a string bad character #163

Draftangel opened this issue May 31, 2023 · 4 comments

Comments

@Draftangel
Copy link

Draftangel commented May 31, 2023

...continuing #162

Describe the bug

I also noticed some bug in your demo with mask ####. Cursor has wrong position after typed new symbol which doesn't match the current mask.

Steps to reproduce

  • In your demo page change mask template to ####
  • typed 1234 // 1234|
  • moved cursor after 2 // 12|34
  • typed any letter, s // 123|4
  • cursor might still on dot, after 2 // 12|34
  • profit

Screenshots

image
image

@Ozzmosis94
Copy link

I have same a problem

@VladBrok37
Copy link

I'm also facing this issue

@jd1378
Copy link

jd1378 commented Jan 9, 2024

from the docs:

When used on input of type number, could have inconsistent behavior in different browsers. Use attribute inputmode="numeric" with type="text" if you need a numeric keyboard.

@beholdr
Copy link
Owner

beholdr commented Jun 2, 2024

Thanks for report. Should be fixed in new v3.

@beholdr beholdr closed this as completed Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants