Skip to content

Commit 70b5bbd

Browse files
committed
fix onHoldEnd handler not called in hold button
1 parent bd580d2 commit 70b5bbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/extension/src/components/hold-button/hold-button.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const HoldButton: FunctionComponent<HoldButtonProps> = ({
7878
setProgress(0);
7979
holdStartTimeRef.current = null;
8080

81+
onHoldEnd?.();
8182
onConfirm?.();
8283

8384
if (type === "submit" && buttonRef.current?.form) {
@@ -90,6 +91,7 @@ export const HoldButton: FunctionComponent<HoldButtonProps> = ({
9091
isLoading,
9192
holdDurationMs,
9293
onHoldStart,
94+
onHoldEnd,
9395
onProgressChange,
9496
onConfirm,
9597
type,

0 commit comments

Comments
 (0)