mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] Rate: readonly和disabled的时候touchMove不应该做任何事 (#3148)
This commit is contained in:
parent
3ffbe93395
commit
0e45d05ce2
@ -61,7 +61,7 @@ function Rate(
|
||||
}
|
||||
|
||||
function onTouchMove(event: TouchEvent) {
|
||||
if (!document.elementFromPoint) {
|
||||
if (!document.elementFromPoint || props.readonly || props.disabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user