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

<Portal> doesn't inherit class and style #65

Open
xymopen opened this issue May 31, 2021 · 1 comment
Open

<Portal> doesn't inherit class and style #65

xymopen opened this issue May 31, 2021 · 1 comment

Comments

@xymopen
Copy link

xymopen commented May 31, 2021

We are using <Portal> to transfer some nodes to some location, with parent being display: flex. When more than one node is transferred, the wrapper <div> would prevent flexbox related CSS rules from working.
Currently we are using a random tag as custom element and display: contents as a workaround. However in some cases Vue would complain that as an unregistered component.
Making <Portal> inherits staticClass, class, staticStyle and style looks like a perfect fix from our point of view.

@sdussaut
Copy link

sdussaut commented Dec 1, 2021

Can confirm that no HTML attributes seem (class and id are not) to be inherited (Vue default behaviour).

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