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 9d6a369 commit 49abc26Copy full SHA for 49abc26
intro.js
@@ -78,13 +78,16 @@
78
for (var i = 0, stepsLength = this._options.steps.length; i < stepsLength; i++) {
79
var currentItem = _cloneObject(this._options.steps[i]);
80
//set the step
81
- currentItem.step = i + 1;
+ currentItem.step = introItems.length + 1;
82
//use querySelector function only when developer used CSS selector
83
if (typeof(currentItem.element) === 'string') {
84
//grab the element with given selector from the page
85
currentItem.element = document.querySelector(currentItem.element);
86
}
87
- introItems.push(currentItem);
+
88
+ if (currentItem.element != null) {
89
+ introItems.push(currentItem);
90
+ }
91
92
93
} else {
0 commit comments