Skip to content

Commit 1c4c5aa

Browse files
committed
show prev/next button if intrItems > 1
1 parent 53268fb commit 1c4c5aa

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
@@ -449,8 +449,11 @@
449449

450450
var tooltipButtonsLayer = tooltipLayer.querySelector('.introjs-tooltipbuttons');
451451
tooltipButtonsLayer.appendChild(skipTooltipButton);
452-
tooltipButtonsLayer.appendChild(prevTooltipButton);
453-
tooltipButtonsLayer.appendChild(nextTooltipButton);
452+
453+
if(this._introItems.length > 1) {
454+
tooltipButtonsLayer.appendChild(prevTooltipButton);
455+
tooltipButtonsLayer.appendChild(nextTooltipButton);
456+
}
454457

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

0 commit comments

Comments
 (0)