Skip to content

Stop it from dissapearing if it cant find element #1437

@sdraper69

Description

@sdraper69

First off, great library, it does everything I want and it's pretty easy to use. Far better than others I tried before finding shepherd (your demo actually originally put me off due to its styling).

I have elements hidden in an off-canvas that appear when a button is clicked. So it is visually appealing the off-canvas div slides in (transition: transform 0.3s ease-out). I also have elements that are created on the fly.

This means shepherd cant attach to the element.

Some of my situations I can get around using a beforeShowPromise, and I am currently seeing how to put a delay in (any guidance is appreciated) but to cover all situations I would also like it not to just "fail" when it cant attach. I feel the fact that the whole tour just ends when it can't find an element can really damage the user experience.

I can see 3 options if it fails to attach (though I'm sure there's more)

  1. Just go in the centre unattached to anything
  2. Try to show again after x seconds
  3. Go back to the previous step

If anyone could point me in the right direction I would appreciate it.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions