From 0e45d05ce28f2d6379a1af09e33962ab2fa934ef Mon Sep 17 00:00:00 2001 From: Litor <547794529@qq.com> Date: Mon, 15 Apr 2019 16:51:41 +0800 Subject: [PATCH] =?UTF-8?q?[improvement]=20Rate:=20readonly=E5=92=8Cdisabl?= =?UTF-8?q?ed=E7=9A=84=E6=97=B6=E5=80=99touchMove=E4=B8=8D=E5=BA=94?= =?UTF-8?q?=E8=AF=A5=E5=81=9A=E4=BB=BB=E4=BD=95=E4=BA=8B=20(#3148)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/rate/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rate/index.tsx b/packages/rate/index.tsx index c834cc426..5257eafb4 100644 --- a/packages/rate/index.tsx +++ b/packages/rate/index.tsx @@ -61,7 +61,7 @@ function Rate( } function onTouchMove(event: TouchEvent) { - if (!document.elementFromPoint) { + if (!document.elementFromPoint || props.readonly || props.disabled) { return; }