I try to get the click on a checkbox using RactiveJS, as follows:
HTML:
<input type='checkbox' on-change-input-click="toggle">
JS:
toggle : function(){
treatment()
}
The toggle
function never gets called.
Why would I like to catch the toggle event? Because once the checkbox toggled, other components must be changed. More precisely, this is a checkbox in a tree. Toggling a checkbox in a tree node toggles the descendants nodes.
Maybe there is another event than change
, input
or click
I missed...
The complete code is in this fiddle.
Aucun commentaire:
Enregistrer un commentaire