Skip to content

[$130] Update react-select version #2846

@maxceem

Description

@maxceem

We started using react-select library a pretty long time ago. And current version 0.9.1 has several issues while the latest version is 2.4.0.

Issues:

  • Warning in browser console: Warning: Unknown prop 'minWidth' on <input> tag.
  • Warning in browser console: Warning: AutosizeInput: isMounted is deprecated.
  • So far we have to call API method directly from the component because the current version expects a promise as asyncOptions. And if we try to rewrite it in a controlled way to utilize the Redux actions and reducers we have to define onInputChange to react on input change. But if we define it, then current version doesn't update the input value and we cannot control input value from the outside. So we cannot implement it in a controlled way.

At the moment we use react-select only in two places:

TODO

  • Update react-select to the latest 2.4.0 version.
  • Refactor AutocompleteInput
  • UserAutoComplete should still work after react-select version update.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions