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 58df7e1 commit 7930cd6Copy full SHA for 7930cd6
src/core/steps.js
@@ -38,6 +38,7 @@ export function goToStepNumber(step) {
38
*/
39
export function nextStep() {
40
this._direction = "forward";
41
+ if (this._waitingNextElement) return;
42
43
if (typeof this._currentStepNumber !== "undefined") {
44
forEach(this._introItems, ({ step }, i) => {
@@ -81,7 +82,11 @@ export function nextStep() {
81
82
}
83
84
if (elementBySelectorNotExists(nextStep)) {
- waitForElement(nextStep._element, () => showElement.call(this, nextStep));
85
+ this._waitingNextElement = true;
86
+ waitForElement(nextStep._element, () => {
87
+ this._waitingNextElement = false;
88
+ showElement.call(this, nextStep);
89
+ });
90
} else {
91
showElement.call(this, nextStep);
92
0 commit comments