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

Creating Lat/Lon masks, portions of the input disappear when editing an earlier portion #1069

Open
foosbar opened this issue Aug 15, 2024 · 0 comments

Comments

@foosbar
Copy link

foosbar commented Aug 15, 2024

Describe the bug
The same code works great for imask (6.6.3) but behaves oddly for imask 7.x. I'm attempting to create a latitude input box that accepts DDM version of latitude.

To Reproduce
Visit Codepen to see a working example

To reproduce, focus on the input field and type 123456789N. It should look like 12° 34.5678' N
Now, select any of the numbers and type a new number. The direction (N) will disappear. With IMASK 6.6.3, the N does NOT disappear with the same code.

Expected behavior
I would expect the portion of the string not being changed to remain intact

Environment:

  • OS: macOS Sonoma 14.6
  • Browser All including safari 17.5 and Chrome 127
  • Version [e.g. 22]
  • IMask: 7.6.1
  • Framework/plugin: React 18.3.1
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

1 participant