Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Possible to pass popperOptions to a single step? #818

Open
dan-jacobson opened this issue Mar 19, 2024 · 1 comment
Open

Possible to pass popperOptions to a single step? #818

dan-jacobson opened this issue Mar 19, 2024 · 1 comment

Comments

@dan-jacobson
Copy link

Right now it seems I can only pass popperOptions to defaultStepOptions, not to individual steps.

I'm trying to pass different offsets based on the step and it would be really nice to be able to pick different popperOptions per step.

Am I just doing it wrong?

@chuckcarpenter
Copy link
Collaborator

@dan-jacobson what version are you using? Offhand, the options set there are passed https://github.com/shepherd-pro/shepherd/blob/51c6837e0d1ec42ebec431727cf59cdbc1ce8443/shepherd.js/src/step.ts#L519

I'm wondering if you're on a version post floatingUI replacement though and then it's floatingUIOptions.

https://shepherdjs.dev/docs/Step.html#Step

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants