Subscribe on changes!

v-model.number does not work for select tag

avatar
Sep 28th 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

avatar
Sep 29th 2020

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