Skip to content

Scrolling to the element specified in highlightedSelectors that is located outside the viewport does not work #664

Description

@altq33

Hi, I ran into a problem. When I specify a bunch of mutationObservables and highlightedSelectors, and as an element before loading the data, I specify the element in the selector prop.
{ selector: "[data-record-tour='loader']", highlightedSelectors: ["[data-record-tour='anamnesis-next-step']"], mutationObservables: ["[data-record-tour='loader']"], }

After the download takes place and the loader disappears, [data-record-tour='anamnesis-next-step'] is correctly selected, but it is outside the viewport and scrolling does not occur. This case works precisely in a situation with asynchronous loading of a step. I was able to repeat this using an example from the documentation. Are there any options for what to do about it? Example Link https://codesandbox.io/p/sandbox/tour-with-data-fetching-forked-yzwfx3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions