{"action":"opened","issue":{"url":"https://api.github.com/repos/meteoric/autoform-ionic/issues/12","labels_url":"https://api.github.com/repos/meteoric/autoform-ionic/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/meteoric/autoform-ionic/issues/12/comments","events_url":"https://api.github.com/repos/meteoric/autoform-ionic/issues/12/events","html_url":"https://github.com/meteoric/autoform-ionic/issues/12","id":63793357,"number":12,"title":"How to set state of Toggle","user":{"login":"jamgold","id":599219,"avatar_url":"https://avatars.githubusercontent.com/u/599219?v=3","gravatar_id":"","url":"https://api.github.com/users/jamgold","html_url":"https://github.com/jamgold","followers_url":"https://api.github.com/users/jamgold/followers","following_url":"https://api.github.com/users/jamgold/following{/other_user}","gists_url":"https://api.github.com/users/jamgold/gists{/gist_id}","starred_url":"https://api.github.com/users/jamgold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamgold/subscriptions","organizations_url":"https://api.github.com/users/jamgold/orgs","repos_url":"https://api.github.com/users/jamgold/repos","events_url":"https://api.github.com/users/jamgold/events{/privacy}","received_events_url":"https://api.github.com/users/jamgold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-23T18:12:13Z","updated_at":"2015-03-23T18:12:13Z","closed_at":null,"body":"this package allows to render an ionic Toggle, which is great. Unfortunately I can not figure out how to set the initial state of the toggle. The underlying checkbox is set correctly, but the toggle in the UI is **always** on. I am using this with simple-schema. Here is a definition where the toggle should be off.\r\n\r\nWhat am I doing wrong?\r\n\r\n```\r\nvar geofence = false;\r\nreturn new SimpleSchema({\r\n             geofence:{\r\n                type: Boolean,\r\n                label: 'In Vicinity',\r\n                defaultValue: geofence,\r\n                autoform: {\r\n                  type: 'toggle'\r\n                  checked: geofence,\r\n                }\r\n              }\r\n});\r\n```"}}