<select
options={[{label:"A",value:2,isChild:0},
{label:"B",value:5,isChild:0},
{ label:"C",value:3,isChild:0} ]}
value = { this.state.selectedOptions}
isSearchable={false}
isDisabled={this.state.isEdit === true}
noOptionsMessage={() => null}
onChange = {this.state.selectedSystems !== null ? this.onViewAll : null}>
</Select
I want to compare the selected option with the option that am gonna select. Let’s say I selected “A” from the dropdown, and when I want to change the option to “B”, I should get a popup saying “Do you want to change the option” with “OK” and “Cancel”. It’s kind of urgency, Thanks in advance!