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
Surprisingly, even though events and checked state are propagated to the html, none of Vue directives work. For example:
<input type="checkbox" data-toggle="toggle" id="checkbox" v-on:change="toggleChecked"> -> this doesn't work. <input type="checkbox" data-toggle="toggle" id="checkbox" onchange="toggleChecked()> - > though this works. v-model doesn't work as well, seems because it relies on the same event mechanism.
Why?
The text was updated successfully, but these errors were encountered:
Ok, wrote a component for Vue 2.x. Use it like this: <toggle id="checkbox" data-on="Enabled" data-off="Disabled" v-model="toggleChecked" /> Based on the original Vue wrapper for Select2 from here
Surprisingly, even though events and checked state are propagated to the html, none of Vue directives work. For example:
<input type="checkbox" data-toggle="toggle" id="checkbox" v-on:change="toggleChecked">
-> this doesn't work.<input type="checkbox" data-toggle="toggle" id="checkbox" onchange="toggleChecked()>
- > though this works.v-model
doesn't work as well, seems because it relies on the same event mechanism.Why?
The text was updated successfully, but these errors were encountered: