Browse Source

fix(rate): readonly state disable touch

richard1015 2 years ago
parent
commit
98d27f70be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/__VUE/rate/common.ts

+ 1 - 1
src/packages/__VUE/rate/common.ts

@@ -106,7 +106,7 @@ const useComponent = (touchable: Boolean = true) => {
       const touch = useTouch();
       const touchMethods = {
         onTouchStart(event: Event) {
-          if (!props.touchable) return;
+          if (!props.touchable || props.readonly) return;
           touch.start(event);
         },
         onTouchMove(event: Event) {