Ivan Nikitin
Ivan Nikitin
Most compact workaround I could think of is to use `String` object. Being an object, it's compatible with `in` operator. Since `String` object and string primitive are both coerce to...
> Which happens here: https://github.com/JedWatson/react-select/blob/master/packages/react-select/src/Select.tsx#L382 BTW, due to some changes the line has moved since then. Now ([v5.7.0][v5.7.0]) it is [L397][L397]. [v5.7.0]: https://github.com/JedWatson/react-select/releases/tag/react-select%405.7.0 [L397]: https://github.com/JedWatson/react-select/blob/react-select%405.7.0/packages/react-select/src/Select.tsx#L397