{"action":"closed","issue":{"url":"https://api.github.com/repos/gpbl/react-day-picker/issues/631","repository_url":"https://api.github.com/repos/gpbl/react-day-picker","labels_url":"https://api.github.com/repos/gpbl/react-day-picker/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/gpbl/react-day-picker/issues/631/comments","events_url":"https://api.github.com/repos/gpbl/react-day-picker/issues/631/events","html_url":"https://github.com/gpbl/react-day-picker/issues/631","id":299414451,"number":631,"title":"Possible to expose prop to delay date parsing/formatting to onBlur?","user":{"login":"roginfarrer","id":9063669,"avatar_url":"https://avatars1.githubusercontent.com/u/9063669?v=4","gravatar_id":"","url":"https://api.github.com/users/roginfarrer","html_url":"https://github.com/roginfarrer","followers_url":"https://api.github.com/users/roginfarrer/followers","following_url":"https://api.github.com/users/roginfarrer/following{/other_user}","gists_url":"https://api.github.com/users/roginfarrer/gists{/gist_id}","starred_url":"https://api.github.com/users/roginfarrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roginfarrer/subscriptions","organizations_url":"https://api.github.com/users/roginfarrer/orgs","repos_url":"https://api.github.com/users/roginfarrer/repos","events_url":"https://api.github.com/users/roginfarrer/events{/privacy}","received_events_url":"https://api.github.com/users/roginfarrer/received_events","type":"User","site_admin":false},"labels":[{"id":536163659,"url":"https://api.github.com/repos/gpbl/react-day-picker/labels/user%20support%20%F0%9F%9A%91","name":"user support 🚑","color":"d8f49c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-22T16:15:11Z","updated_at":"2018-05-06T15:35:04Z","closed_at":"2018-05-06T15:35:04Z","author_association":"NONE","body":"Sandbox: https://codesandbox.io/s/zkn6oqnq4l\r\n\r\nI'm having some trouble using `dateFns` for the `formatDate` and `parseDate`. (I recognize that this library only supports Moment currently, but bare with me.) When using a custom `format` and `dateFns.format` or `dateFns.parse`, the input is impossible to edit. See a similar issue with Moment here: #584. As far as I know, `dateFns` does not offer a \"forgiving\" mode.\r\n\r\nI think this issue could be addressed by exposing an option to postpone the execution of the parse/format functions until the `onBlur` event. That way the user has free range to edit the input, then the string can be formatted once the user is finished.\r\n\r\nI'm open to other solutions, but I thought this could work."}}
{"actor":{"display_login":"gpbl"}}