Open marcioelias opened 6 years ago
Hello, anyone using this component with VueJS 2?
I'm trying to use with v-model to change a data value and is not working. If I use a default checkbox all works.
<input type="checkbox" v-model="itemCheck" name="item-check" data-toggle="toggle" data-width="55" data-size="mini" data-onstyle="success" data-offstyle="default" />
I tried a workaround with change event
<input type="checkbox" onchange="vm.itemCheck = $(this).prop('checked')" .../>
the workaround works fine for me ! thanks!
Hello, anyone using this component with VueJS 2?
I'm trying to use with v-model to change a data value and is not working. If I use a default checkbox all works.
<input type="checkbox" v-model="itemCheck" name="item-check" data-toggle="toggle" data-width="55" data-size="mini" data-onstyle="success" data-offstyle="default" />