File tree Expand file tree Collapse file tree
packages/ui-components/src/ui/multi-step-form Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const MultiStepFormPrevious = React.forwardRef<
6262MultiStepFormPrevious . displayName = 'MultiStepFormPrevious' ;
6363
6464interface MultiStepFormNextProps extends ButtonProps {
65- onNext ?: ( ) => void ;
65+ onNext ?: ( ) => void | Promise < void > ;
6666}
6767
6868const 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 }
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ const MultiStepFormHeader = React.forwardRef<
2525} ) ;
2626MultiStepFormHeader . displayName = 'MultiStepFormHeader' ;
2727
28- type MultiStepFormTitleProps = React . HTMLAttributes < HTMLHeadingElement > ;
28+ type MultiStepFormTitleProps = React . HTMLAttributes < HTMLElement > ;
2929
3030const MultiStepFormTitle = React . forwardRef <
31- HTMLHeadingElement ,
31+ HTMLElement ,
3232 MultiStepFormTitleProps
3333> ( ( { className, children, ...props } , ref ) => {
3434 return (
You can’t perform that action at this time.
0 commit comments