[Select] Simplify handleChange in SelectInput #36983
Labels
component: select
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
package: material-ui
Specific to @mui/material
This line
material-ui/packages/mui-material/src/Select/SelectInput.js
Line 247 in 34f2253
could be simplified to
const child = childrenArray.find((child) => child.props.value === event.target.value);
to avoid:map()
material-ui/packages/mui-material/src/Select/SelectInput.js
Line 253 in 34f2253
I can do the change.
Is it worth submitting a PR?
The text was updated successfully, but these errors were encountered: