Open SirwanAfifi opened 7 years ago
Hey did you find a solution?
$('input').prop('checked', false).icheck('updated');
Any solution for this?
(Note v1.0.2) The ONLY way I have found to stop my checkbox from changing state is to use "throw" which seems naughty. No amount of stopPropagation() or preventDefault() or return false or iCheck('uncheck') would stop the check state from changing.
same issue here! Any solutions??
Before a check box is checked I have some validations, so if there are errors I don't want the check box be selected, for regular input we can use
event.stopPropagation();
which actually stops the event bubbling up through the DOM. But this behavior doesn't work with iCheck:You suggest something like this:
But the problem is that, it triggers the
ifUnchecked
event.Any idea?