this.state.draggingElement is null on excalidraw-lib 0.10 & 0.11
See original GitHub issueThis one is a bit nasty, as it’s hard to give an exact reprodcuting path. Yet, we “consistenly” make excalidraw crash at some point with the code sandbox below 👇 https://codesandbox.io/s/excalidraw-forked-6i6i1d?file=/src/index.js
it give an error like this: s
Arround this line (compiled)
(0,_utils__WEBPACK_IMPORTED_MODULE_34__.resetCursor)(this.canvas);
this.setState((prevState) => ({
draggingElement: null,
elementType: "selection",
selectedElementIds: Object.assign(Object.assign({}, prevState.selectedElementIds), { [this.state.draggingElement.id]: true }), // <--here
}));
To reproduce: there seems to be a “speed component” but tracing lines / arrows " fast-ish …just like that … drawing looks like this before crash
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ad1992 yes
just tried again …
https://user-images.githubusercontent.com/177003/169498394-7462ab6b-2428-476f-bf06-0d8651ed1017.mov
here is how i repro it
unfortunatelly
Cool, thanks for the fix 🎉 … i’ll see if i can wait for the next release 😃