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

(Fix) Add validation to decimals - support copy&paste #610

Merged
merged 16 commits into from
Feb 21, 2018

Conversation

fernandomg
Copy link
Contributor

Closes #568

Due to: #568 (comment)

NumericInput supports min, max, floats, minDecimals, maxDecimals attributes.

The events that are being handled:

  • onPaste, if the text being pasted is not a number, it won't be pasted.
  • onKeyPress, prevents the user from entering floating number related symbols if it's not allowed
  • onChange, evaluate all the component's conditions

@vbaranov
Copy link
Collaborator

@fernandomg could you get upstream from master branch to fix CI?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1483

  • 17 of 17 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 8.735%

Totals Coverage Status
Change from base Build 1481: 0.3%
Covered Lines: 253
Relevant Lines: 1964

💛 - Coveralls

@fernandomg
Copy link
Contributor Author

@vbaranov done

@vbaranov vbaranov merged commit da06a5f into master Feb 21, 2018
@ghost ghost removed the awaiting for review label Feb 21, 2018
@vbaranov vbaranov deleted the add-validation-to-decimals-fix-#568 branch February 21, 2018 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants