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
Thanks for the superb bug report! Indeed, neither onChange nor onClick should fire. I've updated the test case to show both handlers and included a vanilla checkbox for comparison.
levithomason
changed the title
fix(Checkbox): onChange is called if checkbox is disabled
fix(Checkbox): prevent onChange and onClick when disabled
Oct 3, 2016
Version
0.52.2
Steps to Reproduce
onChange
function is calledExpected
The Checkbox should not trigger the
onChange
function when disabled, since it doesn't change.Result
The Checkbox does call the onChange function.
Testcase
http://codepen.io/sprmn/pen/JROPjO
The text was updated successfully, but these errors were encountered: