-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Labels
Pillar: Complete Blazor WebPriority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-enhanced-navigationfeature-blazor-navigationtriaged
Milestone
Description
Enhanced nav produces different scroll position behaviors than normal navigation. Ideally it would be approximately the same.
- When clicking a link:
- Current: Regular navigation scrolls to the top, enhanced nav behaves unpredictably:
- If you're not doing streaming SSR, then it doesn't scroll to the top
- If you are doing streaming SSR, then whether or not it scrolls depends on how quickly the streaming completes
- Ideal: Enhanced nav should scroll to top, except if you're staying on the same page, in which case it should leave the scroll position alone (though it's unclear what we should do if there's streaming SSR - do we restore the scroll pos after streaming completes?)
- Current: Regular navigation scrolls to the top, enhanced nav behaves unpredictably:
- When going back/forwards:
- Current: Regular nav tracks the scroll positions and restores them after backforwards; enhanced nav does not
- Ideal: Ideally it would somehow track and restore scroll positions
Andrzej-W, sveinungf, boukenka, stevenpua, vgallegob and 13 moreAslanAmca and justinasmussenAslanAmca and justinasmussenAslanAmca and justinasmussen
Metadata
Metadata
Assignees
Labels
Pillar: Complete Blazor WebPriority:1Work that is critical for the release, but we could probably ship withoutWork that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-enhanced-navigationfeature-blazor-navigationtriaged