fix: text disappearing on edit (#8558) (#8624)

pull/7911/merge
Mathis Beauville 4 months ago committed by GitHub
parent 47ee8a0094
commit 21815fb930
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}

Loading…
Cancel
Save