Skip to content

Commit

Permalink
fix(rate): readonly state disable touch
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Jan 17, 2023
1 parent 5c9e939 commit 98d27f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packages/__VUE/rate/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 98d27f7

Please sign in to comment.