Fix valori JS per checkbox

This commit is contained in:
Dasc3er 2020-08-31 12:27:16 +02:00
parent a2ab82b09f
commit ca78f8763e
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ Input.prototype.get = function () {
// Conversione del valore per le checkbox
let group = this.element.closest(".form-group");
if (group.find("input[type=checkbox]").length){
value = parseInt(value);
value = parseInt(value) ? 1 : 0;
}
return value;