fix
This commit is contained in:
parent
fec984895e
commit
84059086a6
@ -4499,7 +4499,8 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
this.createFrameElementOnPointerDown(pointerDownState);
|
this.createFrameElementOnPointerDown(pointerDownState);
|
||||||
} else if (
|
} else if (
|
||||||
this.state.activeTool.type !== "eraser" &&
|
this.state.activeTool.type !== "eraser" &&
|
||||||
this.state.activeTool.type !== "hand"
|
this.state.activeTool.type !== "hand" &&
|
||||||
|
this.state.activeTool.type !== "mermaid"
|
||||||
) {
|
) {
|
||||||
this.createGenericElementOnPointerDown(
|
this.createGenericElementOnPointerDown(
|
||||||
this.state.activeTool.type,
|
this.state.activeTool.type,
|
||||||
|
|||||||
@ -67,6 +67,7 @@ export const AllowedExcalidrawActiveTools: Record<
|
|||||||
frame: true,
|
frame: true,
|
||||||
embeddable: true,
|
embeddable: true,
|
||||||
hand: true,
|
hand: true,
|
||||||
|
mermaid: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
export type RestoredDataState = {
|
export type RestoredDataState = {
|
||||||
|
|||||||
@ -131,5 +131,5 @@ export class Debug {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
//@ts-ignore
|
||||||
window.debug = Debug;
|
window.debug = Debug;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user