-
-
Notifications
You must be signed in to change notification settings - Fork 334
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(progress): wrong error on validating sum of rounded percents #954
Conversation
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.
LGTM 👍
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.
LGTM
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.
LGTM
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.
LGTM
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.
LGTM
Thank you for your PR !
@all-contributors please add @ryamaguchi0220 for code and bug |
@hammy2899 I've put up a pull request to add @ryamaguchi0220! 🎉 |
Description
I propose to store unrounded percents in the
data-percent
attribute instead of rounded percents.Here is what causes the wrong error.
① Store rounded percents in the
data-percent
attribute here② Get the rounded percents here
③ Validate sum of the rounded percents here.
As this comment indicates, it is not expected to pass rounded percents to the
percent()
.Testcase
https://jsfiddle.net/yxLr6mut/
Closes
#953