Vuetify: 1.5.14
Vue: 2.6.6
Browsers: Chrome 74.0.3729.157
OS: Windows 10
set false-value to undefined in v-checkbox like this:
<v-checkbox v-model="checkbox" label="Checkbox" :value="true" :false-value="undefined"></v-checkbox>
value is undefined
value is null
https://codepen.io/shlomilevi/pen/BeJJbM?&editable=true&editors=101
Full code
<div id="app">
<v-app id="inspire">
<v-container fluid>
checkbox: {{checkbox | json }}
<v-checkbox v-model="checkbox" label="Checkbox" :value="true" :false-value="undefined"></v-checkbox>
</v-container>
</v-app>
</div>
https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/selectable.js#L131
BTW it's false-value, not falsy-value
Correct I edit my issue and codepen.
The problem is still happen
false-value only works with true-value, not value:true-value="true" :false-value="() => undefined"
Most helpful comment
false-valueonly works withtrue-value, notvalue:true-value="true" :false-value="() => undefined"