mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +03:00
fix: discriminator dropdown showing incorrect field if sorted
This commit is contained in:
parent
3924d3c1be
commit
bcf39dc2cf
|
@ -38,14 +38,11 @@ export class DiscriminatorDropdown extends React.Component<{
|
|||
};
|
||||
});
|
||||
|
||||
const activeItem = options[parent.activeOneOf];
|
||||
this.sortOptions(options, enumValues);
|
||||
|
||||
return (
|
||||
<StyledDropdown
|
||||
value={options[parent.activeOneOf]}
|
||||
options={options}
|
||||
onChange={this.changeActiveChild}
|
||||
/>
|
||||
<StyledDropdown value={activeItem} options={options} onChange={this.changeActiveChild} />
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user