neo4j-labs / arrows.app

A graph drawing application
https://arrows.app
Apache License 2.0
109 stars 16 forks source link

Pressing "Return" in one of the sidebar form fields duplicates the node (with rels) #5

Closed jexp closed 3 years ago

jexp commented 3 years ago

I had this several times where I added a label or changed a font-size and hit in the side-bar text-field which caused the node and it's relationships to be duplicated.

Nothing in the JS console.

apcj commented 3 years ago

I believe this happens because Enter is submitting a form, and the "duplicate" button gets activated as a side effect. I probably need a generic event handler to preventDefault() in all the right places.

apcj commented 3 years ago

Now fixed.