mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
make onElementClick optional
This commit is contained in:
parent
5f4a5b1789
commit
14a23c6c50
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue