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

🐞 - Number incorrectly shift caret on the 1st insertion after mask initialization #1787

Open
5 of 9 tasks
TheHomeGera opened this issue Oct 17, 2024 · 0 comments · May be fixed by #1792
Open
5 of 9 tasks

🐞 - Number incorrectly shift caret on the 1st insertion after mask initialization #1787

TheHomeGera opened this issue Oct 17, 2024 · 0 comments · May be fixed by #1792
Assignees
Labels
bug Something isn't working P1 This issue has high priority scope: kit Related to @maskito/kit

Comments

@TheHomeGera
Copy link

TheHomeGera commented Oct 17, 2024

Which package(s) are the source of the bug?

@maskito/core, @maskito/kit

Playground Link

https://stackblitz.com/edit/6w7vlx-hk9kff?file=index.ts

Description

Ввести число 123456789. Переставить позицию между 5 и 6. Ввести любое число. Карретка передвигается не на ту позицию.

Думаю баг связан с createInitializationOnlyPreprocessor() в методе maskitoNumberOptionsGenerator. Потому что при генерации новой маски залетает не по isInitializationPhase

Maskito version

any

Which browsers have you used?

  • Chrome
  • Firefox
  • Safari
  • Edge

Which operating systems have you used?

  • Windows
  • macOS
  • Linux
  • iOS
  • Android
@TheHomeGera TheHomeGera added the bug Something isn't working label Oct 17, 2024
@nsbarsukov nsbarsukov changed the title 🐞 - Карретка ставится неверно при генерации maskitoNumberOptionsGenerator 🐞 - Number incorrectly shift caret on the 1st insertion after mask initialization Oct 21, 2024
@nsbarsukov nsbarsukov added the scope: kit Related to @maskito/kit label Oct 21, 2024
@nsbarsukov nsbarsukov self-assigned this Oct 21, 2024
@nsbarsukov nsbarsukov added the P1 This issue has high priority label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 This issue has high priority scope: kit Related to @maskito/kit
Projects
None yet
2 participants