Skip to content

SearchInput component not support {value: 'params'} in the inputProps users passes #631

@JoeQiao666

Description

@JoeQiao666

SearchInput component render the input element with spreading the inputProps, but if inputProps is {value:'test'}, it won't work since it will be overrides by value={this.state.value}, I am wondering whether the initial state value in the constructor can check if users passes the value in the inputprops, not directly set it to empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomeThe fix or enhancement is approved and you are invited to contribute to it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions