Skip to content

Commit 0e45d05

Browse files
Litorchenjiahan
authored andcommitted
[improvement] Rate: readonly和disabled的时候touchMove不应该做任何事 (youzan#3148)
1 parent 3ffbe93 commit 0e45d05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/rate/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function Rate(
6161
}
6262

6363
function onTouchMove(event: TouchEvent) {
64-
if (!document.elementFromPoint) {
64+
if (!document.elementFromPoint || props.readonly || props.disabled) {
6565
return;
6666
}
6767

0 commit comments

Comments
 (0)