We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431f1b9 commit 2d45f67Copy full SHA for 2d45f67
src/components/Steps/index.js
@@ -19,7 +19,10 @@ export default class Steps extends Component {
19
initialStep: PropTypes.number.isRequired,
20
steps: PropTypes.arrayOf(
21
PropTypes.shape({
22
- element: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
+ element: PropTypes.oneOfType([
23
+ PropTypes.string,
24
+ typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element),
25
+ ]),
26
intro: PropTypes.node.isRequired,
27
position: introJsPropTypes.tooltipPosition,
28
tooltipClass: PropTypes.string,
0 commit comments