{"action":"created","issue":{"url":"https://api.github.com/repos/romainberger/react-portal-tooltip/issues/15","repository_url":"https://api.github.com/repos/romainberger/react-portal-tooltip","labels_url":"https://api.github.com/repos/romainberger/react-portal-tooltip/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/romainberger/react-portal-tooltip/issues/15/comments","events_url":"https://api.github.com/repos/romainberger/react-portal-tooltip/issues/15/events","html_url":"https://github.com/romainberger/react-portal-tooltip/issues/15","id":156501109,"number":15,"title":"What's the correct way on using Link from react-router inside a tooltip?","user":{"login":"mnazim","id":44779,"avatar_url":"https://avatars.githubusercontent.com/u/44779?v=3","gravatar_id":"","url":"https://api.github.com/users/mnazim","html_url":"https://github.com/mnazim","followers_url":"https://api.github.com/users/mnazim/followers","following_url":"https://api.github.com/users/mnazim/following{/other_user}","gists_url":"https://api.github.com/users/mnazim/gists{/gist_id}","starred_url":"https://api.github.com/users/mnazim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnazim/subscriptions","organizations_url":"https://api.github.com/users/mnazim/orgs","repos_url":"https://api.github.com/users/mnazim/repos","events_url":"https://api.github.com/users/mnazim/events{/privacy}","received_events_url":"https://api.github.com/users/mnazim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-24T13:00:45Z","updated_at":"2016-05-24T13:20:20Z","closed_at":null,"body":"Hello If I use `Link` component from `react-router` inside tooltip I get\r\n``` \r\nLink.js:95 Uncaught TypeError: Cannot read property 'pushState' of undefined\r\n```\r\n\r\nI am us Tooltip like this\r\n\r\n```\r\n<div className=\"collageImage\" style={{ width: this.props.size + 'px', height: this.props.size + 'px'}} >\r\n  <img id={elID}\r\n       onMouseEnter={::this.showTooltip}\r\n       onMouseLeave={::this.hideTooltip}\r\n       className=\"\"\r\n       src={record.image_collage}\r\n       style={{ width: this.props.size + 'px', height: this.props.size + 'px'}} />\r\n  <ToolTip pushState={this.props.pushState} active={this.state.isTooltipActive}\r\n           position=\"bottom\"\r\n           arrow=\"center\"\r\n           parent={'#'+elID}\r\n           tooltipTimeout=\"3000\">\r\n    <div className=\"collageImagePopover\">\r\n      <div className=\"collageImagePopoverTitle\">{record.name}</div>\r\n      <div className=\"collageImagePopoverText\">{record.text}</div>\r\n      <Link pushState={this.props.pushState} to={'/record/' + record.id} className=\"collageImagePopoverLink\"> Read More </Link>\r\n    </div>\r\n  </ToolTip>\r\n</div>\r\n```\r\n\r\nAnother question I have is, that how do I add css for customising the position of popover. I want to move it up 10px from where it's displayed right now.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/romainberger/react-portal-tooltip/issues/comments/221265946","html_url":"https://github.com/romainberger/react-portal-tooltip/issues/15#issuecomment-221265946","issue_url":"https://api.github.com/repos/romainberger/react-portal-tooltip/issues/15","id":221265946,"user":{"login":"mnazim","id":44779,"avatar_url":"https://avatars.githubusercontent.com/u/44779?v=3","gravatar_id":"","url":"https://api.github.com/users/mnazim","html_url":"https://github.com/mnazim","followers_url":"https://api.github.com/users/mnazim/followers","following_url":"https://api.github.com/users/mnazim/following{/other_user}","gists_url":"https://api.github.com/users/mnazim/gists{/gist_id}","starred_url":"https://api.github.com/users/mnazim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnazim/subscriptions","organizations_url":"https://api.github.com/users/mnazim/orgs","repos_url":"https://api.github.com/users/mnazim/repos","events_url":"https://api.github.com/users/mnazim/events{/privacy}","received_events_url":"https://api.github.com/users/mnazim/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T13:20:20Z","updated_at":"2016-05-24T13:20:20Z","body":"`react-router` is @ `1.0.3`"}}
{"actor":{"display_login":"mnazim"}}