make onElementClick optional
This commit is contained in:
parent
5f4a5b1789
commit
14a23c6c50
@ -263,7 +263,7 @@ export interface ExcalidrawProps {
|
||||
) => void;
|
||||
renderCustomElementWidget?: (appState: AppState) => void;
|
||||
customElementsConfig?: CustomElementConfig[];
|
||||
onElementClick: (
|
||||
onElementClick?: (
|
||||
element: NonDeleted<ExcalidrawElement>,
|
||||
event: React.PointerEvent<HTMLCanvasElement>,
|
||||
) => void;
|
||||
|
Loading…
x
Reference in New Issue
Block a user