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

DTRA-2157 / Kate / Input component fix #480

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

kate-deriv
Copy link
Contributor

@kate-deriv kate-deriv commented Oct 28, 2024

Changed the way how the value is truncate in input. Previously toFixed was used and the problem that it round the value: for 2 decimals ---> 5.67 ---> user type '8' ---> 5.678 ---> 5.678.toFixed(2) --> 5.68.
New behaviour: the cut off will not round the value: for 2 decimals ---> 5.67 ---> user type '8' ---> 5.678 ---> toFixedWithoutRounding(5.678, 2) --> 5.67.

Video explanation of the bug:

Incorrect.decimal.value.in.barrier.mp4

Copy link

github-actions bot commented Oct 28, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link

cloudflare-workers-and-pages bot commented Oct 28, 2024

Deploying quill-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8f5dece
Status: ✅  Deploy successful!
Preview URL: https://0bcfe3da.quill-ui.pages.dev
Branch Preview URL: https://kate-dtra-2157-input-roundin.quill-ui.pages.dev

View logs

@prince-deriv prince-deriv merged commit de8e2bc into master Oct 28, 2024
6 checks passed
@prince-deriv prince-deriv deleted the kate/DTRA-2157/input_rounding_fix branch October 28, 2024 08:14
Copy link

🎉 This PR is included in version 1.19.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants