You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest verion of Chakra: 2.5.3
And the latest version of chakra-react-select: 4.6.0
The warning Warning: Prop id did not match. Server: "react-select-chakra-react-select-1-input" Client: "chakra-react-select-demo" Appears in the console.
This is more of an issue with how the underlying react select works I believe. From what I can tell, adding an instanceId to your select component means it will generate an id for the underlying input element based on that. It looks like it's doing something like this:
`react-select-${instanceId}-input`
Which is then getting overridden by the id set on the form control after first render. This is fixed easily enough by manually adding the inputId prop to your select, matching it to the id you have on your form control.
The main purpose of the id prop on the FormControl element is that it's a convenient way to set both the id prop on an input, and a for prop (htmlFor technically) on a FormLabel. So setting it manually on the input will have no negative effect, as long as both values are the same.
Sorry for the delay, but I believe my latest change to correctly support ESM imports should actually fix this issue, and prevent the need for the workaround! You can see the details in v4.9.0
Description
Using the latest verion of Chakra: 2.5.3
And the latest version of chakra-react-select: 4.6.0
The warning
Warning: Prop
iddid not match. Server: "react-select-chakra-react-select-1-input" Client: "chakra-react-select-demo"
Appears in the console.chakra-react-select Version
4.6.0
Link to Reproduction
https://codesandbox.io/s/laughing-turing-9089o6
TypeScript?
Steps to reproduce
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: