File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 582
582
_placeTooltip . call ( self , targetElement . element , tooltipLayer , arrowLayer ) ;
583
583
}
584
584
585
- if ( this . _currentStep == 0 ) {
585
+ if ( this . _currentStep == 0 && this . _introItems . length > 1 ) {
586
586
prevTooltipButton . className = 'introjs-button introjs-prevbutton introjs-disabled' ;
587
587
nextTooltipButton . className = 'introjs-button introjs-nextbutton' ;
588
588
skipTooltipButton . innerHTML = this . _options . skipLabel ;
589
- } else if ( this . _introItems . length - 1 == this . _currentStep ) {
589
+ } else if ( this . _introItems . length - 1 == this . _currentStep || this . _introItems . length == 1 ) {
590
590
skipTooltipButton . innerHTML = this . _options . doneLabel ;
591
591
prevTooltipButton . className = 'introjs-button introjs-prevbutton' ;
592
592
nextTooltipButton . className = 'introjs-button introjs-nextbutton introjs-disabled' ;
You can’t perform that action at this time.
0 commit comments