Skip to content

Commit

Permalink
fix: add onClear prop to Ripple component in button custom implementa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
ryxxn committed Jul 10, 2024
1 parent 134f371 commit d5ed2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/content/components/button/custom-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const MyButton = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
...props,
});
const {ripples} = getRippleProps();
const {ripples, onClear} = getRippleProps();
return (
<button ref={domRef} {...getButtonProps()}>
Expand All @@ -70,7 +70,7 @@ const MyButton = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
{children}
{isLoading && spinnerPlacement === "end" && spinner}
{endContent}
{!disableRipple && <Ripple ripples={ripples} />}
{!disableRipple && <Ripple ripples={ripples} onClear={onClear} />}
</button>
);
});
Expand Down

0 comments on commit d5ed2fa

Please sign in to comment.