Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


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
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(