File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/components/button/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ export function useButton(
37
37
) {
38
38
const attrs = useAttrs ( ) ;
39
39
const bindedProps = ref < object > ( ) ;
40
+ const disableRipple = ref < boolean > ( false ) ;
40
41
const { focused : isFocused } = useFocus ( buttonRef ) ;
41
42
const { pressed : isPressed } = useMousePressed ( { target : buttonRef } ) ;
42
43
const isHovered = useElementHover ( buttonRef ) ;
43
44
44
- useRipple ( buttonRef ) ;
45
+ useRipple ( buttonRef , { disabled : disableRipple } ) ;
45
46
46
47
watch (
47
48
[
@@ -66,6 +67,7 @@ export function useButton(
66
67
spinnerPlacement = "start" ,
67
68
} = { ...originalProps , ...attrs } ;
68
69
70
+ disableRipple . value = disableRippleProp || disableAnimation ;
69
71
const isInGroup = false ;
70
72
const isDisabled = isDisabledProp || isLoading ;
71
73
You can’t perform that action at this time.
0 commit comments