Skip to content

Commit

Permalink
fix: text disappearing on edit (excalidraw#8558) (excalidraw#8624)
Browse files Browse the repository at this point in the history
  • Loading branch information
ObstinateM authored Oct 17, 2024
1 parent 47ee8a0 commit 21815fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/excalidraw/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4737,10 +4737,13 @@ class App extends React.Component<AppProps, AppState> {
this.store.shouldCaptureIncrement();
}

this.setState({
newElement: null,
editingTextElement: null,
flushSync(() => {
this.setState({
newElement: null,
editingTextElement: null,
});
});

if (this.state.activeTool.locked) {
setCursorForShape(this.interactiveCanvas, this.state);
}
Expand Down

0 comments on commit 21815fb

Please sign in to comment.