Fix returning correct custom value in SelectCustom component
This commit is contained in:
parent
88826db4fd
commit
8be8128d6e
@ -41,7 +41,11 @@ export default function Component(props) {
|
||||
isCustom: v === props.customKey ? true : false,
|
||||
});
|
||||
|
||||
props.onChange(event);
|
||||
props.onChange({
|
||||
target: {
|
||||
value: v === props.customKey ? value.custom : value.value,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
const handleCustomChange = (event) => {
|
||||
@ -59,7 +63,7 @@ export default function Component(props) {
|
||||
options.push(
|
||||
<MenuItem key={o.value} value={o.value} disabled={o.disabled === true}>
|
||||
{o.label}
|
||||
</MenuItem>
|
||||
</MenuItem>,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -143,7 +143,7 @@ const Streams = function (props) {
|
||||
{props.streams.map((stream, index) => (
|
||||
<Grid key={stream.index + ':' + stream.stream} item xs={12}>
|
||||
<Stack>
|
||||
<Typography sx={{textTransform: "UPPERCASE", marginBottom: 2}} >{stream.type}</Typography>
|
||||
<Typography sx={{ textTransform: 'UPPERCASE', marginBottom: 2 }}>{stream.type}</Typography>
|
||||
<Stream stream={stream} onChange={handleChange(index)} />
|
||||
</Stack>
|
||||
</Grid>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user