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
{{ message }}
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.
I'm new to using Framework7 so I apologize if this isn't a bug but something I'm misunderstanding, but it seems when you use v-model for an f7-input of type switch the v-model binds to the value of the input element instead of the checked attribute so when you flick the switch there is no response.
Example Template:
<divid='app'><f7-inputtype="switch" v-model="toggle"></f7-input><divv-show="toggle === true">
Toggle is true
</div><divv-show="toggle === false">
Toggle is false
</div></div>
Example Javascript:
newVue({el: '#app',data: {toggle: true}})
This will set the checkbox input value to true and false instead of checked.
The text was updated successfully, but these errors were encountered:
Looks like issue with Vue.js that can't recognize which type of v-model has to be added to custom component so it binds it to value like for text input. Just do it with @change and :checked
I'm new to using Framework7 so I apologize if this isn't a bug but something I'm misunderstanding, but it seems when you use v-model for an f7-input of type switch the v-model binds to the value of the input element instead of the checked attribute so when you flick the switch there is no response.
Example Template:
Example Javascript:
This will set the checkbox input value to true and false instead of checked.
The text was updated successfully, but these errors were encountered: