-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Blazor] Virtualization does not work with web components #44357
Comments
@czdietrich A shadow DOM can operate as either open or closed. Do you know which one applies in your scenario? My guess is that:
If I'm misjudging this and there is some basic bug in Virtualize that stops this working when it should work, could you create a simple repro, for example using https://blazorrepl.telerik.com/? |
Oh wait, maybe it doesn't work even for open shadow roots, since we don't go walking through all the If you have a suggested implementation for how this should work, please let us know and we could assess it. Otherwise this seems like it would be a valid feature request, but would likely stay on the backlog unless there was more community feedback. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Hi @SteveSandersonMS, in our scenario the shadow DOM is open, so Blazor could walk into it, but unlike WPF, you need to explicitly look for the Some important point I missed is that the I'll try to dig deeper into the issue and try to make a minimal repro to demonstrate the issue. |
Firefox 104.2 was also working. Maybe it is a bug in the latest Firefox? |
OK, I got some more info here. First, there seems to be a breaking change (most probably a bug) in current Firefox (105.x) what breaks the current logic in Blazor's See the behavior of getComputedStyle(..): And second, the Blazor's I will think about a patch to also include shadow DOMs for finding the scroll container. |
I have some more insights to share. As in the previous comment stated we stumbled upon an issue with the latest Firefox in relation to the usage of the In my opinion the cause of the issue we face is that the So, to make the What are your thoughts about this? |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
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 whereoverflow-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:
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0.400
Anything else?
No response
The text was updated successfully, but these errors were encountered: