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 6d37653 commit 87fa604Copy full SHA for 87fa604
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) => {
@@ -82,7 +83,11 @@ export function nextStep() {
82
83
}
84
85
if (elementBySelectorNotExists(nextStep)) {
- waitForElement(nextStep._element, () => showElement.call(this, nextStep));
86
+ this._waitingNextElement = true;
87
+ waitForElement(nextStep._element, () => {
88
+ this._waitingNextElement = false;
89
+ showElement.call(this, nextStep);
90
+ });
91
} else {
92
showElement.call(this, nextStep);
93
0 commit comments