{"action":"created","issue":{"url":"https://api.github.com/repos/gpbl/react-day-picker/issues/619","repository_url":"https://api.github.com/repos/gpbl/react-day-picker","labels_url":"https://api.github.com/repos/gpbl/react-day-picker/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/gpbl/react-day-picker/issues/619/comments","events_url":"https://api.github.com/repos/gpbl/react-day-picker/issues/619/events","html_url":"https://github.com/gpbl/react-day-picker/issues/619","id":294591015,"number":619,"title":"handleDayClick not called when providing onFocus as inputProps to DayPickerInput","user":{"login":"marko911","id":15694731,"avatar_url":"https://avatars3.githubusercontent.com/u/15694731?v=4","gravatar_id":"","url":"https://api.github.com/users/marko911","html_url":"https://github.com/marko911","followers_url":"https://api.github.com/users/marko911/followers","following_url":"https://api.github.com/users/marko911/following{/other_user}","gists_url":"https://api.github.com/users/marko911/gists{/gist_id}","starred_url":"https://api.github.com/users/marko911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marko911/subscriptions","organizations_url":"https://api.github.com/users/marko911/orgs","repos_url":"https://api.github.com/users/marko911/repos","events_url":"https://api.github.com/users/marko911/events{/privacy}","received_events_url":"https://api.github.com/users/marko911/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":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-06T00:30:56Z","updated_at":"2018-04-19T08:05:21Z","closed_at":null,"author_association":"NONE","body":"Sorry for lack of example coming, but this is really hard to reproduce online. The gist of the problem is this...\r\n\r\n  I am using this date picker in several cards lined up vertically and in columns across the page. Weirdest thing ever is that ONLY in the 2nd column of cards , for some INSANE reason and only in Chrome, when I click inside the daypicker input, the onClick is not called, only onFocus.\r\n\r\n   I've tried this in all other columns and both get called elsewhere. Why I need onClick is because I need to reposition the overlay before it gets rendered based on where on the page the input is etc.\r\n\r\nSo basically if I provide an onClick to do the style calculation and then render overlay, it all works well and the daypicker works. If I provide onFocus only or both onFocus and onClick, the handleDayClick function never gets called.\r\n\r\n I click dates but nothing happens, the overlay doesn't close and day doesn't get picked. How come the dates cannot  be selected when onFocus is provided? \r\n\r\nEdit: Also, this problem only persists when i use a custom overlay component. This is that component: \r\n```\r\nconst CustomOverlay = style => ({ classNames, selectedDay, children }) => (\r\n  <div className={classNames.overlayWrapper} >\r\n    <div className={classNames.overlay} style={style}>\r\n      {children}\r\n    </div>\r\n  </div>\r\n);\r\n```\r\n\r\n```\r\n       <DayPickerInput\r\n            ref={x => this.datepicker = x}\r\n            value={this.state.date}\r\n            placeholder=\"Choose date\"\r\n            inputProps={{ onFocus: this.controlDatePicker }}\r\n            overlayComponent={CustomOverlay(this.state.datePickerPosition)}\r\n            onDayChange={this.onChangeDate}\r\n          />\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gpbl/react-day-picker/issues/comments/382647536","html_url":"https://github.com/gpbl/react-day-picker/issues/619#issuecomment-382647536","issue_url":"https://api.github.com/repos/gpbl/react-day-picker/issues/619","id":382647536,"user":{"login":"saraivinha85","id":8818035,"avatar_url":"https://avatars2.githubusercontent.com/u/8818035?v=4","gravatar_id":"","url":"https://api.github.com/users/saraivinha85","html_url":"https://github.com/saraivinha85","followers_url":"https://api.github.com/users/saraivinha85/followers","following_url":"https://api.github.com/users/saraivinha85/following{/other_user}","gists_url":"https://api.github.com/users/saraivinha85/gists{/gist_id}","starred_url":"https://api.github.com/users/saraivinha85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraivinha85/subscriptions","organizations_url":"https://api.github.com/users/saraivinha85/orgs","repos_url":"https://api.github.com/users/saraivinha85/repos","events_url":"https://api.github.com/users/saraivinha85/events{/privacy}","received_events_url":"https://api.github.com/users/saraivinha85/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T08:05:21Z","updated_at":"2018-04-19T08:05:21Z","author_association":"NONE","body":"Any progress on this?"}}
{"actor":{"display_login":"saraivinha85"}}