mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-11 11:30:07 +02:00
make onElementClick optional
This commit is contained in:
@@ -263,7 +263,7 @@ export interface ExcalidrawProps {
|
||||
) => void;
|
||||
renderCustomElementWidget?: (appState: AppState) => void;
|
||||
customElementsConfig?: CustomElementConfig[];
|
||||
onElementClick: (
|
||||
onElementClick?: (
|
||||
element: NonDeleted<ExcalidrawElement>,
|
||||
event: React.PointerEvent<HTMLCanvasElement>,
|
||||
) => void;
|
||||
|
Reference in New Issue
Block a user