You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a <v-radio-group /> with one <v-radio :value="null" />. That v-radio's value will actually correspond to its index in the group instead of the null :value passed to it.
The following snippet produces values true, false, and 2 in the bound model when selected in order:
Environment
Vuetify Version: 2.0.18
Vue Version: 2.6.10
Browsers: Chrome 76.0.3809.132
OS: Linux x86_64
Steps to reproduce
Create a
<v-radio-group />
with one<v-radio :value="null" />
. Thatv-radio
's value will actually correspond to its index in the group instead of the null:value
passed to it.The following snippet produces values
true
,false
, and2
in the bound model when selected in order:Expected Behavior
The value assigned to the radio group model should equal the value assigned to the selected box at all times, in this case, null.
Actual Behavior
The value of the bound model is equal to the null radio's index, rather than the
value
prop passed in.Reproduction Link
https://codepen.io/naffarn/pen/eYObxgE
Other comments
This is not an issue for checkboxes and switches that share a v-model for an array.
The text was updated successfully, but these errors were encountered: