mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +03:00
fix: invalid discriminator dropdown behaviour with enum
This commit is contained in:
parent
babae6098c
commit
be07197e6d
|
@ -38,14 +38,12 @@ export class DiscriminatorDropdown extends React.Component<{
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const activeValue = options[parent.activeOneOf].value;
|
||||||
|
|
||||||
this.sortOptions(options, enumValues);
|
this.sortOptions(options, enumValues);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledDropdown
|
<StyledDropdown value={activeValue} options={options} onChange={this.changeActiveChild} />
|
||||||
value={options[parent.activeOneOf].value}
|
|
||||||
options={options}
|
|
||||||
onChange={this.changeActiveChild}
|
|
||||||
/>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user