Not sure how selecting a specific option is supposed to work, i tired selecting the Edit option, although the above code just makes the function alert for both options. How do i make it so the function only happens for a specific option such as "Edit"
<ModalDropdown options={['Edit', 'Delete']} onSelect={(idx, index) => this._dropdown_6_onSelect(0, "Edit")}
_dropdown_6_onSelect(idx, value) { alert("Edit"); }
Not sure how selecting a specific option is supposed to work, i tired selecting the Edit option, although the above code just makes the function alert for both options. How do i make it so the function only happens for a specific option such as "Edit"