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 584
584
_placeTooltip . call ( self , targetElement . element , tooltipLayer , arrowLayer ) ;
585
585
}
586
586
587
- if ( this . _currentStep == 0 ) {
587
+ if ( this . _currentStep == 0 && this . _introItems . length > 1 ) {
588
588
prevTooltipButton . className = 'introjs-button introjs-prevbutton introjs-disabled' ;
589
589
nextTooltipButton . className = 'introjs-button introjs-nextbutton' ;
590
590
skipTooltipButton . innerHTML = this . _options . skipLabel ;
591
- } else if ( this . _introItems . length - 1 == this . _currentStep ) {
591
+ } else if ( this . _introItems . length - 1 == this . _currentStep || this . _introItems . length == 1 ) {
592
592
skipTooltipButton . innerHTML = this . _options . doneLabel ;
593
593
prevTooltipButton . className = 'introjs-button introjs-prevbutton' ;
594
594
nextTooltipButton . className = 'introjs-button introjs-nextbutton introjs-disabled' ;
You can’t perform that action at this time.
0 commit comments