Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comment out useEffect to set EditLabelOpen #134

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

mdroidian
Copy link
Collaborator

User was experiencing severe UX issues when adding a node

  • dialog box popup up multiple times
  • multiple nodes being added

Looks like these lines are partially to blame. Removing them removes the issue, but also removes ability to edit a node.

Merging thing to give user required functionality. Will loop back to see what a proper fix would look like.

They were added in #72 . Let me know if removing these would cause any other breaking changes @dvargas92495

@mdroidian mdroidian merged commit 63db095 into main Aug 7, 2023
1 check passed
@mdroidian mdroidian mentioned this pull request Aug 8, 2023
}, [isEditing, setIsEditLabelOpen]);
// useEffect(() => {
// if (isEditing) setIsEditLabelOpen(true);
// }, [isEditing, setIsEditLabelOpen]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this basically makes the node uneditable, particularly when it first renders.

@mdroidian mdroidian deleted the remove-edit-node-shape branch August 8, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants