Skip to content

Allow clicking anywhere on the edge (even children) - #34

Merged
johnvf merged 3 commits into
masterfrom
rickyp/fixEdgeClick
Feb 9, 2018
Merged

Allow clicking anywhere on the edge (even children)#34
johnvf merged 3 commits into
masterfrom
rickyp/fixEdgeClick

Conversation

@rickyp-uber

Copy link
Copy Markdown
Contributor

I'm still not sure why I don't have to do the same thing for nodes... If anyone can provide background, that would be amazing!

Anyways, this extends the check of "path" to generally be any child of an edge.

<div
className='viewWrapper'
tabIndex={0}
onClick={() => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before someone asks, the click is handled in handleSvgClicked so this was a duplicate

@johnvf
johnvf merged commit 056fb37 into master Feb 9, 2018
@johnvf
johnvf deleted the rickyp/fixEdgeClick branch February 9, 2018 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants