Cannot traverse ranges with spectacle-code-slide. Missing slideIndex prop
See original GitHub issueI’m playing around with spectacle and @thejameskyle’s spectacle-code-slide, but it doesn’t entirely work. Its not possible to go ‘up’ and ‘down’ between the ranges on a code slide.
I was able to debug and see that CodeSlide’sisSlideActive
method is broken because the slideIndex
prop is not passed down: https://github.com/thejameskyle/spectacle-code-slide/blob/master/src/CodeSlide.js#L122
So in order to get the ability to go “up” and “down” within the ranges of a CodeSlide, you can return true from isSlideActive, but then as you’d expect, the up and down affects every slide and not just the active one.
@kenwheeler, I can send a PR for the fix, but I’d like to hear how you think it should be addressed.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Transverse Ranges - Wikipedia
The Transverse Ranges are a group of mountain ranges of southern California, in the Pacific Coast Ranges physiographic region in North America.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ericvicenti how do I include spectacle-code-slide in spectacle-boilerplate? I am a complete noob.and struggling to get codeslide up and running since the last two days.
@ericvicenti yeah wrapping slides has historically been a problem. I should probably get the next version to supply all this with context.