Skip to content

componentWillReceiveProps handles passing option as value incorrectly #601

@wizhippo

Description

@wizhippo

When passing an option as a value componentWillReceiveProps will always fire a state change and if using aysncOptions causing a fetch every time state is updated. This checks to see if the value prop is an object and and handles this special case.

https://github.com/wizhippo/react-select/tree/v0.9.1-fix-value-check

I know there is the new v1.0.0 but it does not support create and tags yet so this is still needed and I was unable to create a PR against v0.9.1 as it is a tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions