Class react-select-styled can't be use in Metronic 8.2.0. Can you help on implementing this currently it is causing the list option unable to bee see when in dark mode. How to fix this?
Hi,
Thank you for reaching out to us.
The react-select support was added in Metronic 8.2.2. If you want to use react-select in Metronic earlier versions you should install react-select dependency with command npm i react-select
and then you can copy src/_metronic/assets/sass/vendors/react-select.scss from the latest Metronic version.
You can refer to our documentation for usage examples https://preview.keenthemes.com/metronic8/react/docs/react-select
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Lauris,
Thank you. It is working now.
But another issue is when I type any text to search the text is not showing in the input box. But react-select is filtering the results. Can you help me to fix this.
Regards,
Safuan
Hi,
Thank you for your feedback.
We reproduced this problem and we will include the fix in the next Metronic release.
To fix it now you can update the &__input-container::after
selector styles in src/_metronic/assets/sass/vendors/react-select.scss
&__input-container::after {
content: attr(data-value) "";
}
Hi Lauris,
Thank you. Its working as expected now.
Regards,
Safuan