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

fix(kit): Number pads integer part with zero if user selects all and then types decimal separator #1220

Merged
merged 3 commits into from
May 13, 2024

Conversation

nsbarsukov
Copy link
Member

Problem description

Open https://maskito.dev/kit/number/API?decimalSeparator=.&precision=2

Case 1

Empty textfield => Type . => 0.

Case 2

Textfield's value is 1.23 => select all => Type . => empty textfield ❌

New behaviour

Textfield's value is 1.23 => select all => Type . => 0.

Closes #1219

@nsbarsukov nsbarsukov self-assigned this May 2, 2024
Copy link
Contributor

github-actions bot commented May 2, 2024

Visit the preview URL for this PR (updated for commit 508da8d):

https://maskito--pr1220-add-zero-for-single-efppwpwl.web.app

(expires Sat, 04 May 2024 11:48:08 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 61e4dea776cbea516b68c67840913d2edd88bb90

@nsbarsukov nsbarsukov marked this pull request as ready for review May 2, 2024 14:59
@github-actions github-actions bot added the ready to merge ready label May 3, 2024
@nsbarsukov nsbarsukov merged commit 8371e45 into main May 13, 2024
33 checks passed
@nsbarsukov nsbarsukov deleted the add-zero-for-single-decimal-separator branch May 13, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants