{"action":"created","issue":{"url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/54","repository_url":"https://api.github.com/repos/YouCanBookMe/react-datetime","labels_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/54/comments","events_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/54/events","html_url":"https://github.com/YouCanBookMe/react-datetime/pull/54","id":124758857,"number":54,"title":"Added support for HTML required attribute.","user":{"login":"gcedo","id":2387240,"avatar_url":"https://avatars.githubusercontent.com/u/2387240?v=3","gravatar_id":"","url":"https://api.github.com/users/gcedo","html_url":"https://github.com/gcedo","followers_url":"https://api.github.com/users/gcedo/followers","following_url":"https://api.github.com/users/gcedo/following{/other_user}","gists_url":"https://api.github.com/users/gcedo/gists{/gist_id}","starred_url":"https://api.github.com/users/gcedo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcedo/subscriptions","organizations_url":"https://api.github.com/users/gcedo/orgs","repos_url":"https://api.github.com/users/gcedo/repos","events_url":"https://api.github.com/users/gcedo/events{/privacy}","received_events_url":"https://api.github.com/users/gcedo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-04T13:28:46Z","updated_at":"2016-02-29T14:43:28Z","closed_at":"2016-02-29T14:43:28Z","pull_request":{"url":"https://api.github.com/repos/YouCanBookMe/react-datetime/pulls/54","html_url":"https://github.com/YouCanBookMe/react-datetime/pull/54","diff_url":"https://github.com/YouCanBookMe/react-datetime/pull/54.diff","patch_url":"https://github.com/YouCanBookMe/react-datetime/pull/54.patch"},"body":"Hi!\r\n\r\nThe goal of this PR is to support the HTML `required` attribute, which may be useful when the DatePicker is used in a form.\r\n\r\nIn order to achieve this, I have added a `required` prop, which is simply passed down to the input field.\r\n\r\nCheers,\r\nEdo"},"comment":{"url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/comments/190237965","html_url":"https://github.com/YouCanBookMe/react-datetime/pull/54#issuecomment-190237965","issue_url":"https://api.github.com/repos/YouCanBookMe/react-datetime/issues/54","id":190237965,"user":{"login":"arqex","id":6509397,"avatar_url":"https://avatars.githubusercontent.com/u/6509397?v=3","gravatar_id":"","url":"https://api.github.com/users/arqex","html_url":"https://github.com/arqex","followers_url":"https://api.github.com/users/arqex/followers","following_url":"https://api.github.com/users/arqex/following{/other_user}","gists_url":"https://api.github.com/users/arqex/gists{/gist_id}","starred_url":"https://api.github.com/users/arqex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arqex/subscriptions","organizations_url":"https://api.github.com/users/arqex/orgs","repos_url":"https://api.github.com/users/arqex/repos","events_url":"https://api.github.com/users/arqex/events{/privacy}","received_events_url":"https://api.github.com/users/arqex/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T14:43:28Z","updated_at":"2016-02-29T14:43:28Z","body":"Hi @gcedo \r\n\r\nThanks for the PR, but the required attribute can be set using the `inputProps`.\r\n\r\n```js\r\n<DateTime inputProps={{required:true}} />\r\n```\r\nhttp://codepen.io/arqex/pen/wGBKBB"}}