React-select: [v2] theme tag being set

Created on 11 Oct 2018  路  10Comments  路  Source: JedWatson/react-select

Version 2.1.0
React 15.6.2

When react select is being rendered it throws this warning:

Warning: Unknown prop `theme` on <input> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in input (created by AutosizeInput)
    in div (created by AutosizeInput)
    in AutosizeInput (created by Input)
    in div (created by Input)
    in Input (created by Select)
    in div (created by ValueContainer)
    in ValueContainer (created by Select)
    in div (created by Control)
    in Control (created by Select)
    in div (created by SelectContainer)
    in SelectContainer (created by Select)

See console on load/render:
Edit ykm2z7o441

When I tried to view the code of Input.js, I found out that the inputCSS function does not receive isDisabled in any case. I think it's component need to be refactored.

Most helpful comment

Turns out this bug was emanating from another package react-input-autosize
I submitted a pull-request to blacklist "theme" as well.

All 10 comments

I am also having this issue. This needs to be addressed !

Version 2.1.0
React 15.6.2

I have this issue after update react-select to ver. 2

Same here in React 15.4

Also having this issue. Cluttering up the console.

any workaround for this @Nick-bcm

Just got hit with this. Seems like that prop should be renamed to data-theme

any workaround for this @Nick-bcm

No. Just waiting for any solution.

I confirmed that changing the prop to data-theme fixes the problem. Now I just have to verify that I didn't just break theming and set up a PR

Turns out this bug was emanating from another package react-input-autosize
I submitted a pull-request to blacklist "theme" as well.

@Nick-bcm thanks for raising this, resolved in v2.1.1
https://codesandbox.io/s/pyjy2w593x

Was this page helpful?
0 / 5 - 0 ratings

Related issues

batusai513 picture batusai513  路  3Comments

joshualimpj picture joshualimpj  路  3Comments

Meesam picture Meesam  路  3Comments

steida picture steida  路  3Comments

pablote picture pablote  路  3Comments