Skip to content

Commit 2d45f67

Browse files
committed
Update step element proptype
1 parent 431f1b9 commit 2d45f67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Steps/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export default class Steps extends Component {
1919
initialStep: PropTypes.number.isRequired,
2020
steps: PropTypes.arrayOf(
2121
PropTypes.shape({
22-
element: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
22+
element: PropTypes.oneOfType([
23+
PropTypes.string,
24+
typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element),
25+
]),
2326
intro: PropTypes.node.isRequired,
2427
position: introJsPropTypes.tooltipPosition,
2528
tooltipClass: PropTypes.string,

0 commit comments

Comments
 (0)