-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
fix(custom-element): ensure proper remount and prevent redundant slot parsing with shadowRoot false #13201
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
base: main
Are you sure you want to change the base?
Conversation
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
@@ -1131,6 +1131,92 @@ describe('defineCustomElement', () => { | |||
expect(target.innerHTML).toBe(`<span>default</span>`) | |||
app.unmount() | |||
}) | |||
|
|||
test('toggle nested custom element with shadowRoot: false', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @edison1105 , thanks for the fix, it works fine in our app as well!
I'm not sure if it is related to the current issue or I need to create a separate one, but If in custom element slot we have a v-if
clause, then it never renders even if the clause is true, but if it's v-show
- it works fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want me to add a test case to this branch or I can create an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please create new one, I will take a look later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for this @edison1105
The issue is created here #13206
close #13199