{"action":"created","issue":{"url":"https://api.github.com/repos/grommet/grommet/issues/282","labels_url":"https://api.github.com/repos/grommet/grommet/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/grommet/grommet/issues/282/comments","events_url":"https://api.github.com/repos/grommet/grommet/issues/282/events","html_url":"https://github.com/grommet/grommet/issues/282","id":123836640,"number":282,"title":"LoginForm component remember me field value","user":{"login":"eabay","id":158772,"avatar_url":"https://avatars.githubusercontent.com/u/158772?v=3","gravatar_id":"","url":"https://api.github.com/users/eabay","html_url":"https://github.com/eabay","followers_url":"https://api.github.com/users/eabay/followers","following_url":"https://api.github.com/users/eabay/following{/other_user}","gists_url":"https://api.github.com/users/eabay/gists{/gist_id}","starred_url":"https://api.github.com/users/eabay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eabay/subscriptions","organizations_url":"https://api.github.com/users/eabay/orgs","repos_url":"https://api.github.com/users/eabay/repos","events_url":"https://api.github.com/users/eabay/events{/privacy}","received_events_url":"https://api.github.com/users/eabay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-24T22:13:22Z","updated_at":"2015-12-28T03:34:31Z","closed_at":null,"body":"It is easy to create a remember me field in LoginForm but no way to [set a default](281) or read value.\r\n\r\nFeels like value should be passed to `onSubmit` prop as an argument?"},"comment":{"url":"https://api.github.com/repos/grommet/grommet/issues/comments/167469219","html_url":"https://github.com/grommet/grommet/issues/282#issuecomment-167469219","issue_url":"https://api.github.com/repos/grommet/grommet/issues/282","id":167469219,"user":{"login":"alansouzati","id":1207250,"avatar_url":"https://avatars.githubusercontent.com/u/1207250?v=3","gravatar_id":"","url":"https://api.github.com/users/alansouzati","html_url":"https://github.com/alansouzati","followers_url":"https://api.github.com/users/alansouzati/followers","following_url":"https://api.github.com/users/alansouzati/following{/other_user}","gists_url":"https://api.github.com/users/alansouzati/gists{/gist_id}","starred_url":"https://api.github.com/users/alansouzati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alansouzati/subscriptions","organizations_url":"https://api.github.com/users/alansouzati/orgs","repos_url":"https://api.github.com/users/alansouzati/repos","events_url":"https://api.github.com/users/alansouzati/events{/privacy}","received_events_url":"https://api.github.com/users/alansouzati/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T03:34:31Z","updated_at":"2015-12-28T03:34:31Z","body":"I've added a comment in https://github.com/grommet/grommet/issues/281 that I believe will address the default value issue.\r\n\r\nFor the read value, you could use the `remembeMe` property of LoginForm:\r\n\r\n```javascript\r\n  ...\r\n  _onFormSubmit () {\r\n    if (this.props.rememberMe) {\r\n      ...\r\n    }\r\n  }\r\n\r\n  render () {\r\n    return (\r\n      <LoginForm\r\n        rememberMe={this.props.rememberMe}\r\n        onSubmit={this._onFormSubmit}\r\n      />\r\n    );  \r\n  }\r\n\r\n```\r\n\r\nPlease let me know if I'm missing something..."}}