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?
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-modeldoesn't work as well, seems because it relies on the same event mechanism.Why?