mirror of
https://github.com/youzan/vant.git
synced 2025-12-24 02:02:09 +08:00
[improvement] Rate: readonly和disabled的时候touchMove不应该做任何事 (#3148)
This commit is contained in:
@@ -61,7 +61,7 @@ function Rate(
|
||||
}
|
||||
|
||||
function onTouchMove(event: TouchEvent) {
|
||||
if (!document.elementFromPoint) {
|
||||
if (!document.elementFromPoint || props.readonly || props.disabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user