Skip to content

[Feature Request] Condition dcc.Link's window.scrollTo(0,0) on a component prop #3974

Description

@yblainm

Is your feature request related to a problem? Please describe.
Occasionally a dcc.Link will update the URL, though only some portion of the layout will be updated. However, the page will still scroll to the top.

Describe the solution you'd like
dcc.Link currently calls window.scrollTo(0,0) unconditionally. It could be nice for that to be conditional, perhaps controlled by a prop.

Describe alternatives you've considered
None.

Additional context
None.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions