{"action":"created","issue":{"url":"https://api.github.com/repos/gcanti/tcomb-form/issues/295","repository_url":"https://api.github.com/repos/gcanti/tcomb-form","labels_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/295/comments","events_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/295/events","html_url":"https://github.com/gcanti/tcomb-form/issues/295","id":131674926,"number":295,"title":"Boolean a Textfield not Checkbox","user":{"login":"ekristen","id":48329,"avatar_url":"https://avatars.githubusercontent.com/u/48329?v=3","gravatar_id":"","url":"https://api.github.com/users/ekristen","html_url":"https://github.com/ekristen","followers_url":"https://api.github.com/users/ekristen/followers","following_url":"https://api.github.com/users/ekristen/following{/other_user}","gists_url":"https://api.github.com/users/ekristen/gists{/gist_id}","starred_url":"https://api.github.com/users/ekristen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekristen/subscriptions","organizations_url":"https://api.github.com/users/ekristen/orgs","repos_url":"https://api.github.com/users/ekristen/repos","events_url":"https://api.github.com/users/ekristen/events{/privacy}","received_events_url":"https://api.github.com/users/ekristen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-02-05T15:41:33Z","updated_at":"2016-02-05T16:46:11Z","closed_at":null,"body":"I'm using `tcomb-json-schema` with `tcomb-form` and for whatever reason whenever a boolean is converted from `JSON`, the field never renders as a Checkbox, always as Text.\r\n\r\nIt seems that the bug is right around here, looks like it is comparing functions https://github.com/gcanti/tcomb-form/blob/master/src/components.js#L29\r\n\r\nIt gets converted during build to something like ... \r\n\r\n```\r\nswitch (type.meta.kind) {\r\n      case 'irreducible':\r\n        if (type === _tcombValidation2['default'].Boolean) {\r\n          return Checkbox; // eslint-disable-line no-use-before-define\r\n        } else if (type === _tcombValidation2['default'].Date) {\r\n            return Datetime; // eslint-disable-line no-use-before-define\r\n          }\r\n        return Textbox; // eslint-disable-line no-use-before-define\r\n```\r\n\r\nAFAICT `if (type === _tcombValidation2['default'].Boolean) {` will never match"},"comment":{"url":"https://api.github.com/repos/gcanti/tcomb-form/issues/comments/180434678","html_url":"https://github.com/gcanti/tcomb-form/issues/295#issuecomment-180434678","issue_url":"https://api.github.com/repos/gcanti/tcomb-form/issues/295","id":180434678,"user":{"login":"ekristen","id":48329,"avatar_url":"https://avatars.githubusercontent.com/u/48329?v=3","gravatar_id":"","url":"https://api.github.com/users/ekristen","html_url":"https://github.com/ekristen","followers_url":"https://api.github.com/users/ekristen/followers","following_url":"https://api.github.com/users/ekristen/following{/other_user}","gists_url":"https://api.github.com/users/ekristen/gists{/gist_id}","starred_url":"https://api.github.com/users/ekristen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekristen/subscriptions","organizations_url":"https://api.github.com/users/ekristen/orgs","repos_url":"https://api.github.com/users/ekristen/repos","events_url":"https://api.github.com/users/ekristen/events{/privacy}","received_events_url":"https://api.github.com/users/ekristen/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T16:46:11Z","updated_at":"2016-02-05T16:46:11Z","body":"That did it thanks!. Now my only other problem is that coupled with react, it always marks the admin field as being invalid when I click save."}}