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