vue-number-format icon indicating copy to clipboard operation
vue-number-format copied to clipboard

Clearing input when highlighting an input and entering the "." character

Open matty-liu opened this issue 2 years ago • 1 comments

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!

matty-liu avatar Apr 11 '23 14:04 matty-liu

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

dipaksarkar avatar Apr 11 '23 16:04 dipaksarkar