-
Notifications
You must be signed in to change notification settings - Fork 477
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
feat(kit): InputNumber
uses Maskito
instead of legacy text-mask
#4725
Conversation
Pull request was closed ✔️All saved screenshots (for current PR) were deleted 🗑️ |
BundleMonFiles updated (2)
Unchanged files (4)
Total files change -492B -0.08% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
Visit the preview URL for this PR (updated for commit 6d04bff): https://taiga-ui--pr4725-maskito-input-number-u5bl15nj.web.app (expires Tue, 27 Jun 2023 11:15:51 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4b5ece1e114386f6a105425ef799091475b249eb |
325724f
to
01fb918
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4725 +/- ##
==========================================
- Coverage 69.88% 69.70% -0.19%
==========================================
Files 1574 1574
Lines 17323 17302 -21
Branches 2431 2419 -12
==========================================
- Hits 12106 12060 -46
- Misses 4822 4844 +22
- Partials 395 398 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
0a60621
to
71a9e6e
Compare
projects/kit/components/input-slider/test/input-slider.component.spec.ts
Show resolved
Hide resolved
b8cbc7e
to
49ad1d8
Compare
49ad1d8
to
22c1ba9
Compare
InputNumber
uses Maskito
instead of legacy text-mask
InputNumber
uses Maskito
instead of legacy text-mask
@@ -146,15 +144,11 @@ export class TuiInputNumberComponent | |||
} | |||
|
|||
get formattedValue(): string { | |||
return this.getFormattedValue(this.value || 0); | |||
return this.value !== null ? this.getFormattedValue(this.value || 0) : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| 0
is unnecessary :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is required for NaN
.
See https://taiga-ui.dev/charts/arc-chart#sizes (it displays NaN
as zero).
PR Type
What kind of change does this PR introduce?
Closes #4540
Closes #3664
Closes #4341
Closes #120