From 4c378c05f9a71cab267bdcd3ad77704fce6e7890 Mon Sep 17 00:00:00 2001 From: xujiang Date: Sat, 21 Nov 2020 16:18:42 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=9C=A8=E7=94=BB=E5=B8=83=E4=B8=AD=E5=8D=95?= =?UTF-8?q?=E6=9C=BA=E5=87=BA=E7=8E=B0=E4=BA=A4=E4=BA=92=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=A2=9E=E5=BC=BA=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicShop/BasicComponents/Form/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/BasicShop/BasicComponents/Form/index.tsx b/src/components/BasicShop/BasicComponents/Form/index.tsx index d91ee3a..14f99c9 100644 --- a/src/components/BasicShop/BasicComponents/Form/index.tsx +++ b/src/components/BasicShop/BasicComponents/Form/index.tsx @@ -36,6 +36,8 @@ const FormComponent = (props: IFormConfig & { isTpl: boolean }) => { }); } }; + + const isEditorPage = window.location.pathname.indexOf('editor') > -1; return ( <> {props.isTpl && ( @@ -50,6 +52,7 @@ const FormComponent = (props: IFormConfig & { isTpl: boolean }) => { backgroundColor: bgColor, overflow: 'hidden', position: 'absolute', + pointerEvents: isEditorPage ? 'none' : 'initial', }} > {title && (