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

Strange behavior with input type="number" #6069

Closed
sinceow opened this issue Jul 11, 2017 · 1 comment
Closed

Strange behavior with input type="number" #6069

sinceow opened this issue Jul 11, 2017 · 1 comment
Labels

Comments

@sinceow
Copy link

sinceow commented Jul 11, 2017

Version

2.3.4

Reproduction link

https://codepen.io/sinceow/pen/dRQaPW

Steps to reproduce

I want to build a input with 6 digital. The code above woks fine until I enter '0' more then 6 times.
'val' in Vue model is '000000', but the display is '00000000'

What is expected?

I think it's a bug

What is actually happening?

I don't know

@nickmessing
Copy link
Member

@yyx990803, looks like this check is the reason, is this behaviour expected?

P.S. toNumber('03') === toNumber('3') another potential case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants