{"action":"created","issue":{"url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/8","labels_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/8/comments","events_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/8/events","html_url":"https://github.com/djhi/meteor-autoform-materialize/issues/8","id":64638567,"number":8,"title":"Checkboxes and radios don't work when using afQuickField","user":{"login":"coniel","id":1728027,"avatar_url":"https://avatars.githubusercontent.com/u/1728027?v=3","gravatar_id":"","url":"https://api.github.com/users/coniel","html_url":"https://github.com/coniel","followers_url":"https://api.github.com/users/coniel/followers","following_url":"https://api.github.com/users/coniel/following{/other_user}","gists_url":"https://api.github.com/users/coniel/gists{/gist_id}","starred_url":"https://api.github.com/users/coniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coniel/subscriptions","organizations_url":"https://api.github.com/users/coniel/orgs","repos_url":"https://api.github.com/users/coniel/repos","events_url":"https://api.github.com/users/coniel/events{/privacy}","received_events_url":"https://api.github.com/users/coniel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T21:29:13Z","updated_at":"2015-03-26T22:02:15Z","closed_at":null,"body":"When using afQuickField the input has what looks like a randomly generated id, so the 'for' attribute on the label is not valid. When using 'afFieldInput' it comes out fine. See example below:\r\n\r\n```html\r\n<template name=\"afCheckbox_materialize\">\r\n  <p>\r\n    <input id=\"{{this.name}}\" type=\"checkbox\" value=\"{{this.value}}\" {{atts}} />\r\n    <label for=\"{{this.name}}\">{{afFieldLabelText name=this.name}}</label>\r\n  </p>\r\n</template>\r\n```\r\n\r\n```{{>afQuickField name=\"foo\"}}```:\r\n```html\r\n<p>\r\n    <input id=\"ZH5e9BNYskZQGxCqy\" type=\"checkbox\" name=\"foo\" data-schema-key=\"foo\">\r\n    <label for=\"foo\">Foo</label>\r\n<p>\r\n```\r\n\r\n```{{>afFieldInput name=\"foo\"}}```:\r\n```html\r\n<p>\r\n    <input id=\"foo\" type=\"checkbox\" name=\"foo\" data-schema-key=\"foo\">\r\n    <label for=\"foo\">Foo</label>\r\n<p>\r\n```"},"comment":{"url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/comments/86733000","html_url":"https://github.com/djhi/meteor-autoform-materialize/issues/8#issuecomment-86733000","issue_url":"https://api.github.com/repos/djhi/meteor-autoform-materialize/issues/8","id":86733000,"user":{"login":"djhi","id":1122076,"avatar_url":"https://avatars.githubusercontent.com/u/1122076?v=3","gravatar_id":"","url":"https://api.github.com/users/djhi","html_url":"https://github.com/djhi","followers_url":"https://api.github.com/users/djhi/followers","following_url":"https://api.github.com/users/djhi/following{/other_user}","gists_url":"https://api.github.com/users/djhi/gists{/gist_id}","starred_url":"https://api.github.com/users/djhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djhi/subscriptions","organizations_url":"https://api.github.com/users/djhi/orgs","repos_url":"https://api.github.com/users/djhi/repos","events_url":"https://api.github.com/users/djhi/events{/privacy}","received_events_url":"https://api.github.com/users/djhi/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T22:02:15Z","updated_at":"2015-03-26T22:02:15Z","body":"Fix on its way"}}