Skip to content

Commit 1967842

Browse files
Enable startIndex prop
Somehow this feature got lost. This should bring it back.
1 parent b8479cb commit 1967842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wizard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Handler, WizardProps } from './types';
55
import WizardContext from './wizardContext';
66

77
const Wizard: React.FC<WizardProps> = React.memo(
8-
({ header, footer, children }) => {
9-
const [activeStep, setActiveStep] = React.useState(0);
8+
({ header, footer, children, startIndex = 0 }) => {
9+
const [activeStep, setActiveStep] = React.useState(startIndex);
1010
const [isLoading, setIsLoading] = React.useState(false);
1111
const hasNextStep = React.useRef(true);
1212
const hasPreviousStep = React.useRef(false);

0 commit comments

Comments
 (0)