From 9af05f2671a36618dfd8437b8c2837af34ac743c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=86=E4=B8=80?= Date: Fri, 21 Feb 2020 15:00:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=8B=E4=BB=B6off=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react/src/component/LayerEvent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/component/LayerEvent.tsx b/packages/react/src/component/LayerEvent.tsx index db290fa300..5f57ec9683 100644 --- a/packages/react/src/component/LayerEvent.tsx +++ b/packages/react/src/component/LayerEvent.tsx @@ -14,7 +14,7 @@ export const LayerEvent = React.memo((props: ILayerProps) => { useEffect(() => { layer.on(type, handler); return () => { - layer.off('type', handler); + layer.off(type, handler); }; }, [type]); return null;