{"action":"created","issue":{"url":"https://api.github.com/repos/Rudeg/react-input-calendar/issues/88","repository_url":"https://api.github.com/repos/Rudeg/react-input-calendar","labels_url":"https://api.github.com/repos/Rudeg/react-input-calendar/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/Rudeg/react-input-calendar/issues/88/comments","events_url":"https://api.github.com/repos/Rudeg/react-input-calendar/issues/88/events","html_url":"https://github.com/Rudeg/react-input-calendar/issues/88","id":157239460,"number":88,"title":"issue with openOnInputFocus","user":{"login":"caranicas","id":1971367,"avatar_url":"https://avatars2.githubusercontent.com/u/1971367?v=4","gravatar_id":"","url":"https://api.github.com/users/caranicas","html_url":"https://github.com/caranicas","followers_url":"https://api.github.com/users/caranicas/followers","following_url":"https://api.github.com/users/caranicas/following{/other_user}","gists_url":"https://api.github.com/users/caranicas/gists{/gist_id}","starred_url":"https://api.github.com/users/caranicas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caranicas/subscriptions","organizations_url":"https://api.github.com/users/caranicas/orgs","repos_url":"https://api.github.com/users/caranicas/repos","events_url":"https://api.github.com/users/caranicas/events{/privacy}","received_events_url":"https://api.github.com/users/caranicas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-05-27T16:03:49Z","updated_at":"2017-11-20T02:44:23Z","closed_at":"2017-11-20T02:44:23Z","author_association":"CONTRIBUTOR","body":"hey there, \n\nI am noticing a bug functionality with the `openOnInputFocus` prop. \n\nI logged things out, and the set visibility function works the same, and in last check they both set isVisible to true.\n\n```\nif (this.state.isVisible !== value && !this.props.disabled) {\n     this.setState({ isVisible: value });\n}\n```\n\nHowever then when you get to the render function the visibility bool is flipped back to to false when i click from the icon so it passes over the ternary to create item, however when you focus from the input the visibility is set to true (which makes sense, but makes calendar equal to the empty string) .\n\n```\nvar calendar = !this.state.isVisible ? '' : _react2.default.createElement(\n        'div',\n        { className: calendarClass, onClick: this.calendarClick },\n        view,\n        _react2.default.createElement(\n          'span',\n          {\n            className: 'today-btn' + (this.checkIfDateDisabled((0, _moment2.default)().startOf('day')) ? ' disabled' : ''),\n            onClick: this.todayClick },\n          todayText\n        )\n      );\n```\n\nIll do some more logging, and see what I can figure out, but I thought you might have a better idea, of where that bool might be getting reset to false. \n"},"comment":{"url":"https://api.github.com/repos/Rudeg/react-input-calendar/issues/comments/345577116","html_url":"https://github.com/Rudeg/react-input-calendar/issues/88#issuecomment-345577116","issue_url":"https://api.github.com/repos/Rudeg/react-input-calendar/issues/88","id":345577116,"user":{"login":"Rudeg","id":1915554,"avatar_url":"https://avatars2.githubusercontent.com/u/1915554?v=4","gravatar_id":"","url":"https://api.github.com/users/Rudeg","html_url":"https://github.com/Rudeg","followers_url":"https://api.github.com/users/Rudeg/followers","following_url":"https://api.github.com/users/Rudeg/following{/other_user}","gists_url":"https://api.github.com/users/Rudeg/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudeg/subscriptions","organizations_url":"https://api.github.com/users/Rudeg/orgs","repos_url":"https://api.github.com/users/Rudeg/repos","events_url":"https://api.github.com/users/Rudeg/events{/privacy}","received_events_url":"https://api.github.com/users/Rudeg/received_events","type":"User","site_admin":false},"created_at":"2017-11-20T02:44:23Z","updated_at":"2017-11-20T02:44:23Z","author_association":"OWNER","body":"should be fixed in current version"}}
{"actor":{"display_login":"Rudeg"}}