question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom Slides Ignored; Stepper Ignores Steps

See original GitHub issue

react : 6.13.1 spectacle : 6.0.1

I’m trying Spectacle for the first time and ran into this issue Various Issues w/ Imported Slides #678, which mentions it should be resolved by the Slide rewrite. I believe the rewrite has since been released, but the issue is not resolved so I’d like to reopen. Specifically, Slides are discarded if they are not inlined children of Deck. The suggested workaround to wrap Slide contents in React.Fragment allows the Slide to render, but causes nested Steppers to ignore their steps and immediately proceed to the next Slide.

Please see this CodeSandbox I’ve prepared demonstrating the issues I’ve mentioned.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ryan-roemercommented, Apr 7, 2020

@kale-stew This might be a related thing to #870 in that both Appear and Stepper are similarly written, and used here: https://github.com/FormidableLabs/spectacle/blob/88e635bae3a00eda9fd35bc77acb9d7ffe5a7b74/src/components/deck/index.js#L143-L144

0reactions
matt-d-ratcommented, Aug 18, 2020

Stepper also seems to not work when it is the only child in a slide like:

<Slide>
  <Stepper values={[1, 2, 3]}>{(value, step) => <div>{step}</div>}</Stepper>
</Slide>

It calls the function only once with value = undefined and step = -1.

It starts working when I put a sibling either before or after Stepper though. ¯_(ツ)_/¯

I can also confirm this behaviour. It appears that if you put any element or even a React.Fragment as a sibling, the Stepper component is then somehow happy and works as expected. Weird.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Slides Ignored; Stepper Ignores Steps #871 - CodeSandbox
A simple Spectacle presentation sample for open source contributors to use to demonstrate behaviors in bug reports. 0.
Read more >
Custom Components: Creating a Custom Stepper - Swift Talk
We work on the accessibility of our custom stepper component. ... By completely ignoring the contents of the stepper controls, ...
Read more >
Angular Material Stepper component prevent going to all the ...
I want to prevent the user from visiting the next steps by clicking the step buttons of the stepper component. However, I want...
Read more >
Stepper - Angular Material
Content for step label given by <ng-template matStepLabel> . Methods. isErrorState. Custom error state matcher that additionally checks for validity of ...
Read more >
Sampler Synth Details in Logic Pro - Apple Support
Click the Details button to view or hide the Synth Details slide-out pane. ... Ignore Release Velocity button: Turn on to play samples...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found