The v-checkbox doesn't generate checkbox ID #2119
Labels
T: bug
Functionality that does not work as intended/expected
T: enhancement
Functionality that enhances existing features
Milestone
Steps to reproduce
Create a v-checkbox with the following attributes:
<v-checkbox id="checkbox-id" label="checkbox-label" v-model="checkbox" />
Inspect the generated HTML:
<div class="input-group--selection-controls__ripple"></div>
since if it is clicked via code ($('.input-group--selection-controls__ripple').click()
), the checkbox gets checked/unchecked.Versions
Tested with the following versions:
Vue: 2.4.2 and 2.4.4
Vuetify: 0.16.1 and 0.16.5
What is expected ?
The label's for-attribute should target the actual checkbox element, or in the case of Vuetify, the element that looks like a checkbox. This would allow:
What is actually happening ?
The checkbox ID doesn't get generated anywhere, rendering the label's for-attribute useless.
Reproduction Link
Codepen
The text was updated successfully, but these errors were encountered: