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

Remove cut nodes from view #287

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

ArcaTech
Copy link
Contributor

@ArcaTech ArcaTech commented Aug 1, 2023

This adds a new cut attr to nodes when they're cut, and adds a cut-node class that sets display to none.

@taramk let me know how you feel about it.

Closes #274

@progrium
Copy link
Contributor

progrium commented Aug 4, 2023

Since attributes are persisted but clipboard state isn't, this could lead to inconsistent state across a page reload. Instead of storing it in an attribute, maybe you could just check the clipboard state if the node is in there?

@ArcaTech
Copy link
Contributor Author

ArcaTech commented Aug 4, 2023

Oh yeah actually that makes more sense. I'll do that.

@ArcaTech
Copy link
Contributor Author

ArcaTech commented Aug 4, 2023

Ok @progrium I made the change. Much cleaner.

@progrium progrium merged commit 658b380 into treehousedev:main Aug 4, 2023
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.

Cutting the node should remove it from view
2 participants