-
Notifications
You must be signed in to change notification settings - Fork 82
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
MutationObserver does not see changes within a shadow-root #110
Comments
I can take this bug on. |
Since we need this kind of utility in mutliple places (at least 2), it makes sense to create some sort of abstraction (I called these things "service") for "recursive MutationObservers". |
Yeah a service to handle this would be a good idea. I'll look at how you've handled services and work on one for this. |
First, I don't think we need to observe shadows for Registering a |
Good findings, thanks for following up on this. |
@jordanaustin are you still planning on giving this a shot, or should I take over? If you're up for it, I'm happy to help with docs and tests… I'd be looking to close this soon, as it's one of two remaining issues for the 1.1.0 release. I guess I'd have created |
@rodneyrehm sorry I've been slammed and haven't had a chance to look into this recently. If you have time to take it, that won't hurt my feelings. Otherwise I might have a chance to get back to this in a few weeks. I am keenly interested in seeing a 1.1.0 release however so if this is holding it up I can try to carve some time out over the weekend possibly. |
No need to apologize… this is OSS, not your dayjob ;) I'll take over :) |
Thanks @rodneyrehm :) |
Currently the MutationObserver cannot observe changes within a shadow-root unless explicitly set on the fragment. This is a problem for features like maintain.disabled where we observe changes on a context and filtered elements. As of right now any changed made to those shadow-roots will not be observed.
The purposed solution suggested by @rodneyrehm on #107 is to check for a shadow-root on all child elements of the context/filters and hookup an observer on all of the shadow-roots individually.
The text was updated successfully, but these errors were encountered: