Skip to content

Commit 0a8c51a

Browse files
small fixes
1 parent 8afb91d commit 0a8c51a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/ui-components/src/ui/multi-step-form/multi-step-form-footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const MultiStepFormPrevious = React.forwardRef<
6262
MultiStepFormPrevious.displayName = 'MultiStepFormPrevious';
6363

6464
interface MultiStepFormNextProps extends ButtonProps {
65-
onNext?: () => void;
65+
onNext?: () => void | Promise<void>;
6666
}
6767

6868
const MultiStepFormNext = React.forwardRef<
@@ -74,7 +74,7 @@ const MultiStepFormNext = React.forwardRef<
7474
const handleClick = async (e: React.MouseEvent<HTMLButtonElement>) => {
7575
onClick?.(e);
7676
if (onNext) {
77-
onNext();
77+
await onNext();
7878
} else {
7979
await goToNext();
8080
}

packages/ui-components/src/ui/multi-step-form/multi-step-form-header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ const MultiStepFormHeader = React.forwardRef<
2525
});
2626
MultiStepFormHeader.displayName = 'MultiStepFormHeader';
2727

28-
type MultiStepFormTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
28+
type MultiStepFormTitleProps = React.HTMLAttributes<HTMLElement>;
2929

3030
const MultiStepFormTitle = React.forwardRef<
31-
HTMLHeadingElement,
31+
HTMLElement,
3232
MultiStepFormTitleProps
3333
>(({ className, children, ...props }, ref) => {
3434
return (

0 commit comments

Comments
 (0)