Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Materialize (addFields) radio buttons are broken #421

Closed
mohsin-rafii opened this issue Jun 9, 2015 · 3 comments
Closed

Materialize (addFields) radio buttons are broken #421

mohsin-rafii opened this issue Jun 9, 2015 · 3 comments

Comments

@mohsin-rafii
Copy link

You can't select radio buttons because 'for' attribute on label tag is missing. If you go through generated html of below code there will be no 'for' attribute on label tag.

AccountsTemplates.addField({
_id: "fruit",
type: "radio",
displayName: "Preferred Fruit",
select: [
{
text: "Apple",
value: "aa",
}, {
text: "Banana",
value: "bb",
}, {
text: "Carrot",
value: "cc",
},
],
});

@garysxn
Copy link

garysxn commented Aug 11, 2015

I have same problem, unable to select radio buttons because 'for' attribute on label tag is missing.
{
_id: 'gender',
type: 'radio',
placeholder:'Gender',
displayName: 'Gender',
select:[{
text: "Male",
value: "male",
//label: "male",
},
{
text: "Female",
value: "female",
//label: (for="email"),
}]
}

splendido added a commit to meteor-useraccounts/materialize that referenced this issue Aug 21, 2015
@splendido
Copy link
Member

Should be fine now.
Tnx!

@garysxn
Copy link

garysxn commented Sep 21, 2015

Thanks @splendido

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants