Closed blunteshwar closed 1 month ago
Category | Latest (report) | Main (report) | Branch (report) |
---|---|---|---|
Performance | 0.99 | 0.99 | 0.99 |
Accessibility | 1 | 1 | 1 |
Best Practices | 1 | 1 | 1 |
SEO | 1 | 0.92 | 0.92 |
PWA | 1 | 1 | 1 |
main
("Main"). Higher scores are better, but *note that the SEO scores on Netlify URLs are artifically constrained to 0.92.*
Category | Latest | Main | Branch |
---|---|---|---|
Total | 225.537 kB | 210.607 kB | 210.275 kB 🏆 |
Scripts | 54.654 kB | 48.292 kB | 47.999 kB 🏆 |
Stylesheet | 35.059 kB | 30.403 kB | 30.397 kB 🏆 |
Document | 5.998 kB | 5.271 kB 🏆 | 5.273 kB |
Font | 126.871 kB | 126.641 kB | 126.606 kB 🏆 |
Category | Latest | Main | Branch |
---|---|---|---|
Total | 48 | 45 | 45 |
Scripts | 37 | 37 | 37 |
Stylesheet | 5 | 5 | 5 |
Document | 1 | 1 | 1 |
Font | 2 | 2 | 2 |
Description
Number-field was not respecting other locales than 'en'.
Related issue(s)
4483
Motivation and context
The function
convertValueToNumber
was not receiving correct input when locale was anything other than 'en'. In functionstepBy
earlier we were doingthis.inputElement.value = value.toString();
which was not respecting locales. Thus to respect locales we are now formating the value like thisthis.inputElement.value = this.numberFormatter.format(value);
How has this been tested?
I wrote some tests in
Number-field.test.ts
Test hereScreenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.