Skip to content

Commit

Permalink
fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maduraPradeep committed Sep 11, 2019
1 parent fb19391 commit fc2a76d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactbootstrap-wizard-rb",
"version": "1.0.5",
"version": "1.0.6",
"description": "reactbootstrap-wizard React component",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
15 changes: 7 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useRef, forwardRef } from "react";
import React, { useRef } from "react";
import {
Card,
Nav,
Expand Down Expand Up @@ -334,8 +334,7 @@ class Wizard extends React.Component {
<Card.Body>
<Tab.Content>
{this.props.steps.map((prop, key) => {
const Component = forwardRef(prop.component);


return (
<Tab.Pane
eventKey={key}
Expand All @@ -345,11 +344,11 @@ class Wizard extends React.Component {
})}
>
{typeof prop.component === "function" || typeof prop.component === "object" ? (
<Component
ref={stepRefs[prop.stepName]}
wizardData={this.state.wizardData}
{...prop.stepProps}
/>
<prop.component
ref={stepRefs[prop.stepName]}
wizardData={this.state.wizardData}
{...prop.stepProps}
/>
) : (
<div ref={prop.stepName}>{prop.component}</div>
)}
Expand Down

0 comments on commit fc2a76d

Please sign in to comment.