fix: eraser cursor showing on theme change when not using eraser (#4990)
This commit is contained in:
parent
7431ca81d1
commit
a3fbe40b26
@ -1072,7 +1072,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
activeTool: { ...this.state.activeTool, type: "selection" },
|
activeTool: { ...this.state.activeTool, type: "selection" },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (prevState.theme !== this.state.theme) {
|
if (
|
||||||
|
this.state.activeTool.type === "eraser" &&
|
||||||
|
prevState.theme !== this.state.theme
|
||||||
|
) {
|
||||||
setEraserCursor(this.canvas, this.state.theme);
|
setEraserCursor(this.canvas, this.state.theme);
|
||||||
}
|
}
|
||||||
// Hide hyperlink popup if shown when element type is not selection
|
// Hide hyperlink popup if shown when element type is not selection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user