From fc2a76d3a4ea7394899efad1fd77cc8308c013f2 Mon Sep 17 00:00:00 2001 From: madura Date: Wed, 11 Sep 2019 20:28:00 +0530 Subject: [PATCH] fixed issue --- package.json | 2 +- src/index.js | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 4ed77c4..a488234 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index a623d5e..813cacb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import React, { useRef, forwardRef } from "react"; +import React, { useRef } from "react"; import { Card, Nav, @@ -334,8 +334,7 @@ class Wizard extends React.Component { {this.props.steps.map((prop, key) => { - const Component = forwardRef(prop.component); - + return ( {typeof prop.component === "function" || typeof prop.component === "object" ? ( - + ) : (
{prop.component}
)}