It's not working when the input is boolean (for checkbox type).