Skip to content

Using floatingUIOptions.strategy = "fixed" on a step breaks scrolling #3269

@InvisibleBacon

Description

@InvisibleBacon

See this for a repro:
https://codesandbox.io/p/sandbox/shepherdjs-forked-4jlj5m?file=%2Fsrc%2Findex.js%3A22%2C12

By default floatingUIOptions.strategy is "absolute", but if you set it to "fixed", then scrolling breaks the step position:

Image

This bug was most likely introduced here:
3dc5415#diff-2a93e0cbaea15e924eb8a5e23e1a2d5eeeb454b96fc1ef28bca0dda855a55421R121

Line 121 of floating-ui.js explicitly sets position: 'absolute' regardless of the strategy. That should probably be "fixed" when floatingUIOptions.strategy is "fixed".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions