JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.49k stars 4.12k forks source link

Styles not loading properly when using react-select with web-components #5698

Open jircdev opened 1 year ago

jircdev commented 1 year ago

Thanks for developing react-select!

I've encountered an issue while trying to use react-select with BeyondJS, a framework that implements microfrontends based on web-components.

Bug report

The problem I'm facing is that the styles for react-select are not loading properly when it is used within a web-component in BeyondJS. Although react-select functions as expected, it appears without any styling. This suggests that the styles are not being added correctly.

To demonstrate the problem, I have recorded a video and created a Github repository with a use case example:

To recreate this issue, you can clone the repository and follow the steps as I've described in the README file.

I hope this helps in understanding the issue I am facing. I appreciate your support and hope to see this issue resolved soon.

Note: I am using the current major (v5) version of react-select.

Thanks in advance!


Untitled_ Jul 9, 2023 11_22 PM.webm