We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad7b3fa + be88ff9 commit a9a9bfaCopy full SHA for a9a9bfa
src/components/Steps/index.js
@@ -19,7 +19,11 @@ 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.instanceOf(Element)]),
+ element: PropTypes.oneOfType([
23
+ PropTypes.string,
24
+ /* istanbul ignore next */
25
+ typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element),
26
+ ]),
27
intro: PropTypes.node.isRequired,
28
position: introJsPropTypes.tooltipPosition,
29
tooltipClass: PropTypes.string,
0 commit comments