From 14a23c6c50363725cab1138b19985a00b2848fb1 Mon Sep 17 00:00:00 2001 From: ad1992 Date: Thu, 24 Mar 2022 17:28:40 +0530 Subject: [PATCH] make onElementClick optional --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 68ec90577..2a851891a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -263,7 +263,7 @@ export interface ExcalidrawProps { ) => void; renderCustomElementWidget?: (appState: AppState) => void; customElementsConfig?: CustomElementConfig[]; - onElementClick: ( + onElementClick?: ( element: NonDeleted, event: React.PointerEvent, ) => void;