{"action":"created","issue":{"url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline/issues/312","repository_url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline","labels_url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline/issues/312/comments","events_url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline/issues/312/events","html_url":"https://github.com/namespace-ee/react-calendar-timeline/issues/312","id":322507553,"node_id":"MDU6SXNzdWUzMjI1MDc1NTM=","number":312,"title":"Canvas click not firing when item is selected","user":{"login":"florianbepunkt","id":8314202,"node_id":"MDQ6VXNlcjgzMTQyMDI=","avatar_url":"https://avatars1.githubusercontent.com/u/8314202?v=4","gravatar_id":"","url":"https://api.github.com/users/florianbepunkt","html_url":"https://github.com/florianbepunkt","followers_url":"https://api.github.com/users/florianbepunkt/followers","following_url":"https://api.github.com/users/florianbepunkt/following{/other_user}","gists_url":"https://api.github.com/users/florianbepunkt/gists{/gist_id}","starred_url":"https://api.github.com/users/florianbepunkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianbepunkt/subscriptions","organizations_url":"https://api.github.com/users/florianbepunkt/orgs","repos_url":"https://api.github.com/users/florianbepunkt/repos","events_url":"https://api.github.com/users/florianbepunkt/events{/privacy}","received_events_url":"https://api.github.com/users/florianbepunkt/received_events","type":"User","site_admin":false},"labels":[{"id":922854644,"node_id":"MDU6TGFiZWw5MjI4NTQ2NDQ=","url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline/labels/pending-release","name":"pending-release","color":"7efcc1","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-12T12:27:49Z","updated_at":"2018-06-01T15:01:10Z","closed_at":"2018-06-01T15:01:09Z","author_association":"NONE","body":"Not sure if this is a bug or by design\r\n\r\nI have a timeline and specify \r\n\r\n```\r\nonCanvasClick={(e) => console.log('canvas clicked')}\r\nonItemSelect={(e) => console.log('item selected')}\r\n```\r\n\r\nWhen I select an Item and item is displayed as being selected, I need to click two times on the canvas to fire the event. The first click on canvas deselects the item, but does not fire the event, the second click fire the onCanvasClick event.\r\n\r\nIs this a bug? I would expect onCanvas click to fire the first time\r\n\r\nEDIT: Here is a super simple repro based on your template, just added the props mentioned above"},"comment":{"url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline/issues/comments/393907828","html_url":"https://github.com/namespace-ee/react-calendar-timeline/issues/312#issuecomment-393907828","issue_url":"https://api.github.com/repos/namespace-ee/react-calendar-timeline/issues/312","id":393907828,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkwNzgyOA==","user":{"login":"mcMickJuice","id":1879443,"node_id":"MDQ6VXNlcjE4Nzk0NDM=","avatar_url":"https://avatars0.githubusercontent.com/u/1879443?v=4","gravatar_id":"","url":"https://api.github.com/users/mcMickJuice","html_url":"https://github.com/mcMickJuice","followers_url":"https://api.github.com/users/mcMickJuice/followers","following_url":"https://api.github.com/users/mcMickJuice/following{/other_user}","gists_url":"https://api.github.com/users/mcMickJuice/gists{/gist_id}","starred_url":"https://api.github.com/users/mcMickJuice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcMickJuice/subscriptions","organizations_url":"https://api.github.com/users/mcMickJuice/orgs","repos_url":"https://api.github.com/users/mcMickJuice/repos","events_url":"https://api.github.com/users/mcMickJuice/events{/privacy}","received_events_url":"https://api.github.com/users/mcMickJuice/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T15:01:09Z","updated_at":"2018-06-01T15:01:09Z","author_association":"COLLABORATOR","body":"released with 0.16.2"}}
{"actor":{"display_login":"mcMickJuice"}}