-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
fix: Binding after duplicating is now applied for both the old and duplicate shapes #8185
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
Conversation
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
| const { boundElements } = sceneElements.filter( | ||
| ({ id }) => id === oldElementId, | ||
| )[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use find so we don't alloc an array for no reason (will require type assertion !, but once we check for unsafe array access we'd need it anyway)
(edit: perf doesn't matter, but feels cleaner)
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
|
regression: Duplicate bound arrow with only one end bound throws error originating from Throttle Fractional indices #8315 |
…plicate shapes (excalidraw#8185) Using ALT/OPT + drag to clone does not transfer the bindings (or leaves the duplicates in place of the old one , which are also not bound). Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
Using ALT/OPT + drag to clone does not transfer the bindings (or leaves the duplicates in place of the old one , which are also not bound).
Before
After