Skip to content
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

Slot content is not rendered in foreginObject, when forigenObject is root tag of separate component #11832

Closed
alaroma opened this issue Dec 18, 2020 · 1 comment

Comments

@alaroma
Copy link

alaroma commented Dec 18, 2020

Version

2.6.11

Reproduction link

https://codesandbox.io/s/epic-neumann-m8hqz

Steps to reproduce

Open link

What is expected?

Should display button under the text

What is actually happening?

Button is not displayed


I try to add separate vue component in svg. This component has foreginObject tag as root and contains button, wich was inserted thorought slot in another component. It do not work, I mean button is hidden in browser. However the button exist in DOM, more over has sizes

At the same time if forigenObject tag is declared in component with svg it is work. I can see button.
example: https://codesandbox.io/s/inspiring-mclaren-t1z09

I supose, there is porblem with slot content rendering in foreginObject, when forigenObject is root tag of separate component

@posva
Copy link
Member

posva commented Dec 18, 2020

Duplicate of #11315

@posva posva marked this as a duplicate of #11315 Dec 18, 2020
@posva posva closed this as completed Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants