AKJ
AKJ

Reputation: 819

Unknown prop 'theme' on <input> tag: React-Select v2

I have an issue with React-Select. Just started using it as it fits my business requirements.

return (
  <FormGroup row>
    <Col md={6}>
      <Select
        placeholder="Please Select..."
        name={fieldName}
        onChange={onChange}
        options={options} />
    </Col>
  </FormGroup>
)

I did not show the rest of the code; fieldName, onChange & options are props passed from parent-component to child-component.

On the browser, the Dropdown bar seems to be working but I am still getting a warning:

Warning: Unknown prop 'theme' on <input> tag. Remove this prop from the element. in input (created by AutosizeInput) in div (created by AutosizeInput) [...]

I have a couple of questions:

  1. There is no theme props I am passing.
  2. What <input> tag are they talking about?
  3. Is this a known issue with React-Select V2?

Thanks community

Upvotes: 0

Views: 231

Answers (1)

c-chavez
c-chavez

Reputation: 7506

There is an issue that was opened for this here, and apparently solved in v2.1.1.

Issue is in this component.

Upvotes: 1

Related Questions