The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

React Select Issue


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?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)

Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment
Deleted comment

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) "";
}


Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi Lauris,

Thank you. Its working as expected now.


Regards,
Safuan


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.