Skip to content

Commit 2025d5d

Browse files
committed
fix skipping slide with Appear when starting after
1 parent a09a9ca commit 2025d5d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/slide.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const Slide = React.createClass({
2121
presenterStyle: React.PropTypes.object,
2222
children: React.PropTypes.node,
2323
notes: React.PropTypes.string,
24-
slideIndex: React.PropTypes.number
24+
slideIndex: React.PropTypes.number,
25+
lastSlide: React.PropTypes.number
2526
},
2627
contextTypes: {
2728
styles: React.PropTypes.object,
@@ -57,7 +58,7 @@ const Slide = React.createClass({
5758
this.context.flux.actions.SlideActions.addFragment({
5859
slide: this.props.slideIndex,
5960
id: i,
60-
visible: false
61+
visible: this.props.lastSlide > this.props.slideIndex
6162
});
6263
});
6364
}

0 commit comments

Comments
 (0)