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

v-model.number does not work for select tag #2252

Closed
deb17 opened this issue Sep 28, 2020 · 1 comment · Fixed by #2308
Closed

v-model.number does not work for select tag #2252

deb17 opened this issue Sep 28, 2020 · 1 comment · Fixed by #2308
Labels
has PR A pull request has already been submitted to solve the issue has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working

Comments

@deb17
Copy link

deb17 commented Sep 28, 2020

Version

3.0.0

Reproduction link

https://codepen.io/deb17/pen/rNebLBK

Steps to reproduce

Just select a number from the dropdown - the type shows up as 'string'.

What is expected?

The type should be 'number'.

What is actually happening?

The type is 'string'.


This is working correctly in Vue 2. See https://codepen.io/deb17/pen/mdPaYvO

@posva posva added has PR A pull request has already been submitted to solve the issue 🐞 bug Something isn't working has workaround A workaround has been found to avoid the problem labels Sep 29, 2020
@posva
Copy link
Member

posva commented Sep 29, 2020

As a workaround, you can use :value="2"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has PR A pull request has already been submitted to solve the issue has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working
Projects
None yet
2 participants