[Documentation] v-checkbox model is input-value, not value
See original GitHub issueEnvironment
Vuetify Version: 2.4.3 Vue Version: 2.6.12 Browsers: Firefox 84.0 OS: Windows 10
Steps to reproduce
When using a v-checkbox
with @change
like
<v-checkbox :value="value" @change="(changed) => value = changed"></v-checkbox>
simply uncheck it after it was previously checked, and then look at the parameter that’s provided by the @change
event, which is set to the value
data variable.
(Uncheck the second checkbox in the reproduction link.)
Expected Behavior
The value should become true when checked and false when unchecked. Alternatively there should be any documentation about the expected behavior. Additionally, the API documentation should most certainly document the expected behavior, along with the possible types (currently any
) instead of an ambiguous “Emitted when the input is changed by user interaction
”.
Actual Behavior
Uncheck the second checkbox in the reproduction link, and the value becomes null. Any strongly-typed code breaks a promise of returning a boolean.
Reproduction Link
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top GitHub Comments
It’s
:input-value
, not:value
v-simple-checkbox inside v-datatable issues Warning; failed to resolve directive: ripple (vue 2.6.11, vuetify 2.4.4)