-
Notifications
You must be signed in to change notification settings - Fork 918
Closed
Description
Version
11.0.0
Reproduction link
https://github.com/foundryspatial-duncan/vue-loader-issue-demo/blob/master/src/App.vue
Steps to reproduce
- In a single-file Vue component (.vue file), add some scoped styles (with the
scoped
property on thestyle
tag). - Inject some HTML that matches your scoped style's selector with v-html
What is expected?
The styles would affect the injected HTML
What is actually happening?
The styles do not affect the injected HTML
Looks like HTML injected with v-html aren't given the "data-v-[hash]" property (like data-v-08ce5946).
I think there's a proposal somewhere to only add the data-v-[hash] to the component's root element and then prefix all the styles to scope them. That would solve this issue as well.
codeofsumit, WraithKenny, usernamehw, liuliangsir, zolomatok and 2 more
Metadata
Metadata
Assignees
Labels
No labels