[Feature Request] Condition dcc.Link's window.scrollTo(0,0) on a component prop
Author: yblainmCreated Sep 4, 2026Updated Sep 8, 2026
LabelsP3enhancementsize: 1
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.
Source: plotly/dash