Skip to content

[SelectField] Does not call onChange after props.value is changed and user reselects original value #1608

Closed
@garth

Description

@garth
let option = [option1, option2];
<SelectField
        menuItems={options}
        value={this.props.value}
        onChange={e => this.onChange(e)}/>

When the initial this.props.value is 1 and is later changed to 2 and re-rendered the onChange event is not called when the user reselects 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: selectThis is the name of the generic UI component, not the React module!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions