Skip to content

Commit f591f90

Browse files
committed
fixed a bug with start action
1 parent 6252d7c commit f591f90

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

example/TourPage.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ export default props => {
128128

129129
{tour.getCustomState().showLazy && <LazyStep />}
130130

131-
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
132-
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
133-
<div className="way-down-the-page" ref={scrollStep}>Hi guys!</div>
131+
<div className="way-down-the-page" ref={scrollStep} style={{marginTop: '110vh'}}>Hi guys!</div>
134132
</div>
135133
)
136134
}

lib/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default (selectors, dispatch) => {
4444
dispatch({
4545
type: SET_STEP_POINTER,
4646
data: {
47-
index: startAt ? selectors.getIndexOfStep(startAt) : 0,
47+
index: typeof startAt === 'string' ? selectors.getIndexOfStep(startAt) : 0,
4848
action: 'start'
4949
}
5050
})

0 commit comments

Comments
 (0)