vaadin / flow

Vaadin Flow is a Java framework binding Vaadin web components to Java. This is part of Vaadin 10+.
Apache License 2.0
588 stars 164 forks source link

Exported MPR wrapped legacy components lose styles #19446

Open OlliTietavainenVaadin opened 1 month ago

OlliTietavainenVaadin commented 1 month ago

Description of the bug

When I have a V8 component with MPR's LegacyWrapper, I can use it without problems in a Flow view. If I try to use the same component in a React view via WebComponentExporter, the component appears and reacts to events as expected but doesn't have any styles.

Expected behavior

Legacy styles should be shown

Minimal reproducible example

https://github.com/vaadin/hackathon-24-4/tree/olli

Versions

mshabarov commented 1 month ago

This issue isn't in newly introduced ReactAdapterElement or related API, but in between Embedded Flow and MPR features (i.e. WebComponentExporter and LegacyWrapper).

I can confirm that if I take Flow 24.3 branch and add a legacy components into exported web-component, I'll get no styling either.