File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/packages/tour/components Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ <h4>Section Six</h4>
73
73
function startIntro ( ) {
74
74
var intro = introJs . tour ( ) ;
75
75
intro . setOptions ( {
76
+ hideNext : true ,
76
77
steps : [
77
78
{
78
79
title : '<p>Welcome</p>' ,
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ const NextButton = ({
177
177
} ) => {
178
178
const isFullButton = currentStep === 0 && steps . length > 1 && hidePrev ;
179
179
const isLastStep = currentStep === steps . length - 1 || steps . length === 1 ;
180
+ const isHidden = isLastStep && hideNext ;
180
181
181
182
const isDisabled = dom . derive ( ( ) => {
182
183
// when the current step is the last one or there is only one step to show
@@ -205,6 +206,9 @@ const NextButton = ({
205
206
classNames . push ( fullButtonClassName ) ;
206
207
}
207
208
209
+ if ( isHidden ) {
210
+ classNames . push ( hiddenButtonClassName ) ;
211
+ }
208
212
return classNames . filter ( Boolean ) . join ( " " ) ;
209
213
} ,
210
214
} ) ;
You can’t perform that action at this time.
0 commit comments