[improvement] Rate: readonly和disabled的时候touchMove不应该做任何事 (#3148)

This commit is contained in:
Litor 2019-04-15 16:51:41 +08:00 committed by neverland
parent 3ffbe93395
commit 0e45d05ce2

View File

@ -61,7 +61,7 @@ function Rate(
} }
function onTouchMove(event: TouchEvent) { function onTouchMove(event: TouchEvent) {
if (!document.elementFromPoint) { if (!document.elementFromPoint || props.readonly || props.disabled) {
return; return;
} }