Skip to content

Commit 1f75728

Browse files
committed
Add check in attrs for 'checked' attribute
1 parent 3ca627e commit 1f75728

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vfjs-field-mixin/computed.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const computed = {
3030
attrs.value = this.vfjsFieldModel || (this.vfjsFieldOptions.attrs && this.vfjsFieldOptions.attrs.value);
3131
}
3232

33+
if (this.vfjsFieldHelperComponentMatchesComponentProperties(checked)) {
34+
attrs.checked = this.vfjsFieldModel || (this.vfjsFieldOptions.attrs && this.vfjsFieldOptions.attrs.checked);
35+
}
36+
3337
return attrs;
3438
},
3539
vfjsComputedFieldDomProps() {

0 commit comments

Comments
 (0)