I’m trying to disable the default action of adding the elments I selected in select, in the select window, but I don’t know how. I’m also not sure how I can pass the key correctly, is the way I have it in MenuItem done correctly? The data I am mapping is a variable that has a new Set with an array of items with a specific name (item). I am using material ui.
enter image description here
I would like to be able to turn this option off.
<FormControl>
<Select multiple value={someCode} onChange={handleOnChange} className={classes.hiddenItem}>
{setOfNewData.ma[((item) => (
<MenuItem key={item} value={item}>
{item}
</MenuItem>
))}
</Select>
</FormControl>
New contributor
Emm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.