- Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
area-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-virtualizationThis issue is related to the Blazor Virtualize componentThis issue is related to the Blazor Virtualize component
Milestone
Description
Describe the bug
Blazor's Virtualize component tries to find the surrounding scroll container by moving up the elements tree and look for an element where overflow-y != visible. (see here)
Unfortunately that way it will not find scrollable containers within web components, since it never checks for the shadow root on any element.
Expected Behavior
Virtualization should also just work for custom scroll containers that are built using web components.
pseudo html:
<div> <my-custom-scroll-viewer> <!-- shadow root contains an element with vertical overflow --> <Virtualize Items="..." /> </my-custom-scroll-viewer> </div>Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0.400
Anything else?
No response
boukenka and MarvinKlein1508
Metadata
Metadata
Assignees
Labels
area-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-virtualizationThis issue is related to the Blazor Virtualize componentThis issue is related to the Blazor Virtualize component