vue-numeric-input icon indicating copy to clipboard operation
vue-numeric-input copied to clipboard

Adds onPaste validation, fix adds with decimal and toPresicion bug

Open nachodd opened this issue 3 years ago • 1 comments

  • 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 avatar May 18 '21 22:05 nachodd

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.

nachodd avatar May 18 '21 22:05 nachodd