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
{{ message }}
This repository was archived by the owner on May 30, 2023. It is now read-only.
Use F.FormComponent and a form that includes a checkbox.
var Component = new Class({
extend: F.FormComponent,
model: Backbone.Model.extend({}),
template: Handlebars.compile('<input type="checkbox" name="someAttr" value="cowValue"><button>Submit</button>')
});
Load a model that has someAttr: cowValue.
Load the form, uncheck the checkbox, hit save.
Result
someAttr remains as cowValue.
Expected
someAttr should be unset? Set to a different value?
Analysis
When the checkbox is checked, the attribute someAttr is correctly updated with the property: value, when the checkbox is not checked, the property someAttr is untouched
Steps
someAttr: cowValue.Result
someAttrremains ascowValue.Expected
someAttrshould be unset? Set to a different value?Analysis
When the checkbox is checked, the attribute
someAttris correctly updated with theproperty: value, when the checkbox is not checked, the propertysomeAttris untouched