vue-number-format
vue-number-format copied to clipboard
Clearing input when highlighting an input and entering the "." character
Hello again!
I am using @coders-tm/vue-number-format: "2.14.0"
When inputting a decimal value, if the input has a value and I highlight the value and press ., I would expect the input to display 0. but it is currently behaving differently from that.
Example 1:
input has a value of 0.12
highlight input value and type .
expected behavior: input would display 0.
current behavior: input displays 0.12
Example 2:
input has a value of 12
highlight input value and type .
expected behavior: input would display 0.
current behavior: input displays empty string
Cheers!
I have published new version v2.17.0 for vue 2 which should fix your issue.
https://codesandbox.io/s/coders-tm-vue-number-format-2-m6mp17?from-embed=&file=/package.json