Skip to content

Conversation

nachodd
Copy link

@nachodd nachodd commented May 18, 2021

  • Adds onPaste handler that check if the actual value pasted is a valid Numeric value.
  • Corrects a bug when adding or subtracting numbers with decimals.
  • Fix toPresicion fn bug: If the initial value is an integer, it fails to apply toFixed

…icion bug

- Adds onPaste handler that check if the actual value pasted is a valid Numeric value.
- Corrects a bug when adding or subtracting numbers with decimals. 
- Fix toPresicion fn bug: If the initial value is an integer, it fails to apply toFixed
@nachodd
Copy link
Author

nachodd commented May 18, 2021

I've also created another validations, like disabling the "e" to be entered (as input type number supports scientific notation, but is rarely used). If you want, I can create another PR.

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.

1 participant