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
Hello, I'm having trouble getting my custom checkbox to work, because the checkbox label has no 'for' attribute when rendered, because {{atts}} has no ID.
In my #autoForm template:
{{> afFieldInput name='doJournal'}}
Then I created the template I want to use:
`
{{afFieldLabelText name=this.name}}
`
In my JS I have: AutoForm.setDefaultTemplateForType('afCheckbox', 'mCheckbox');
Template.afCheckbox_mCheckbox.onRendered(function() { m = Template.currentData(); console.log('current data', m); });
Hello, I'm having trouble getting my custom checkbox to work, because the checkbox label has no 'for' attribute when rendered, because {{atts}} has no ID.
In my #autoForm template:
{{> afFieldInput name='doJournal'}}
Then I created the template I want to use:
`
In my JS I have:
AutoForm.setDefaultTemplateForType('afCheckbox', 'mCheckbox');
Template.afCheckbox_mCheckbox.onRendered(function() { m = Template.currentData(); console.log('current data', m); });
And the result of the console log:
atts: Object: data-schema-key: "doMaxMinAvg" name: "doMaxMinAvg
So as you can see, there is no ID in {{atts}} for this template
Is this a bug or something I'm not doing properly?
The text was updated successfully, but these errors were encountered: