Skip to content

ui-spinner decimal value rounding fix #428

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

Closed
wants to merge 1 commit into from
Closed

ui-spinner decimal value rounding fix #428

wants to merge 1 commit into from

Conversation

hughlomas
Copy link

Modified ui-spinner's _spin method to round new values to existing decimal lengths. Added three tests to confirm this behavior, "decimalStep", "decimalValueIntegerStep", and "integerValueDecimalStep". Creating a pull request per Jörn Zaefferer.

…. Added three tests to confirm this behavior, "decimalStep", "decimalValueIntegerStep", and "integerValueDecimalStep"
@scottgonzalez
Copy link
Member

Thanks, landed a cleaner implementation in 257021b.

@hughlomas
Copy link
Author

The new tests that I included on this pull request still fail on the latest version in master. 25f2113

@scottgonzalez
Copy link
Member

Those tests are no longer valid as they use the value option. Do they still fail if you update the tests?

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

Successfully merging this pull request may close these issues.

2 participants