mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +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);
|
||||
|
||||
return (
|
||||
<StyledDropdown
|
||||
value={options[parent.activeOneOf].value}
|
||||
options={options}
|
||||
onChange={this.changeActiveChild}
|
||||
/>
|
||||
<StyledDropdown value={activeValue} options={options} onChange={this.changeActiveChild} />
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user