diff --git a/example/src/Interaction/index.tsx b/example/src/Interaction/index.tsx index 0daf76fb..6862b280 100644 --- a/example/src/Interaction/index.tsx +++ b/example/src/Interaction/index.tsx @@ -51,8 +51,6 @@ const InteractionFlow = () => { const [captureZoomScroll, setCaptureZoomScroll] = useState(false); const [captureElementClick, setCaptureElementClick] = useState(false); - console.log(11, captureElementClick); - return ( , Keys]>(() => { if (keyCode !== null) { const keyCodeArr = Array.isArray(keyCode) ? keyCode : [keyCode]; - const keys = keyCodeArr.map((kc) => kc.split('+')); + const keys = keyCodeArr.filter((kc) => typeof kc === 'string').map((kc) => kc.split('+')); const keysFlat = keys.reduce((res: Keys, item) => res.concat(...item), []); return [keys, keysFlat];