-
Notifications
You must be signed in to change notification settings - Fork 124
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
bug: [React] when updating the slot content the component looses it's style #393
Comments
Just found an workaround, if you add a React Fragment |
Hey @pedroresende, also if you add another children, like: |
This should be resolved with the latest version of |
@christian-bromann just tested this with 0.7.1 and the issue still remains when dynamically changing the slot content when the component does not have shadow enabled. The fragment workaround works for non-shadow components. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the output targets, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Stencil Version
4.3.0
Stencil Framework Output Target
React
Stencil Framework Output Target Version
0.5.3
Current Behavior
If the content of the slot is replaced after the element is created the element looses it's style
Screen.Recording.2023-09-28.at.09.27.40.mp4
Expected Behavior
To update the slot content and the wrapper to continue to work as expected
Steps to Reproduce
Code Reproduction URL
https://github.com/pedroresende/css-removal-bug
Additional Information
No response
The text was updated successfully, but these errors were encountered: