Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Issue with React Select


Hi guys,

I am building a project using Metronic 8 and React JS - started from demo1 template.

The issue I am having is with React Select - the input box to enter the search criteria always stays of initial size (2px) even after I enter some long text there:

<Select className='react-select-styled' classNamePrefix='react-select' />

On the demo page (https://preview.keenthemes.com/metronic8/react/docs/react-select) it works all good.

I see the select is styled using src/_metronic/assets/sass/vendors/react-select.scss.

Please note the issue disappears after I remove custom styling (className='react-select-styled' classNamePrefix='react-select').

Screenshot showing the issue is here: https://imgur.com/a/GYVFn2t

Could you please help to troubleshoot the issue?

Thank you!


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 (2)


I found the answer in another thread:

&__input-container::after {
// content: "";
content: attr(data-value) "";
}

The issue is gone now.



Hi,

This problem should be fixed in the latest version.

Could you please clarify which version you are using?

Regards,
Lauris Stepanovs,
Keenthemes Support Team


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  :(