Skip to content

Commit a9a9bfa

Browse files
authored
Merge pull request #86 from HaoboZ/patch-1
2 parents ad7b3fa + be88ff9 commit a9a9bfa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Steps/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ 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.instanceOf(Element)]),
22+
element: PropTypes.oneOfType([
23+
PropTypes.string,
24+
/* istanbul ignore next */
25+
typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element),
26+
]),
2327
intro: PropTypes.node.isRequired,
2428
position: introJsPropTypes.tooltipPosition,
2529
tooltipClass: PropTypes.string,

0 commit comments

Comments
 (0)