Skip to content

Commit b4f5ca1

Browse files
committed
Merge branch 'master' of https://github.com/adobi/intro.js into adobi-master
2 parents 699a183 + 1c4c5aa commit b4f5ca1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

intro.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,11 @@
452452

453453
var tooltipButtonsLayer = tooltipLayer.querySelector('.introjs-tooltipbuttons');
454454
tooltipButtonsLayer.appendChild(skipTooltipButton);
455-
tooltipButtonsLayer.appendChild(prevTooltipButton);
456-
tooltipButtonsLayer.appendChild(nextTooltipButton);
455+
456+
if(this._introItems.length > 1) {
457+
tooltipButtonsLayer.appendChild(prevTooltipButton);
458+
tooltipButtonsLayer.appendChild(nextTooltipButton);
459+
}
457460

458461
//set proper position
459462
_placeTooltip.call(self, targetElement.element, tooltipLayer, arrowLayer);

0 commit comments

Comments
 (0)