-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Allow mounting an app to a ShadowRoot #2399
Comments
Vue can't work normally with |
yyx990803
pushed a commit
that referenced
this issue
Dec 4, 2020
lennyanders
pushed a commit
to lennyanders/bookmark-sidebar
that referenced
this issue
Dec 30, 2020
- remove dirty hack due to vue update vuejs/core#2399
4 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What problem does this feature solve?
You can mount a Vue App to a
ShadowRoot
and therefore avoid one layer of nesting. I think this feature is at least useful for native web components and browser extensions.I got it to work through some hack. I simply added the functions
removeAttribute
andsetAttribute
, which don't do anything, to my shadow Root.Here is a CodePen to see it in action.
https://codepen.io/LennyAnders/pen/PozNJKL?editors=1010
What does the proposed API look like?
There is actually no change in the API. The only change is that the
mount
function needs to work withShadowRoot
's.The text was updated successfully, but these errors were encountered: