mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
fix: fix non-scalar query/path/header params are not expandable
fixes #561
This commit is contained in:
parent
8817d9c9db
commit
dcca44a92d
|
@ -48,7 +48,7 @@ export const PropertyCell = styled.td`
|
|||
border-left-color: transparent;
|
||||
}
|
||||
|
||||
tr:only-child > & {
|
||||
tr.last:first-child > & {
|
||||
background: none;
|
||||
border-left-color: transparent;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { observer } from 'mobx-react';
|
||||
import * as React from 'react';
|
||||
import { FieldDetails } from './FieldDetails';
|
||||
|
||||
import { ClickablePropertyNameCell, RequiredLabel } from '../../common-elements/fields';
|
||||
import { FieldDetails } from './FieldDetails';
|
||||
|
||||
import {
|
||||
InnerPropertiesWrap,
|
||||
|
@ -26,7 +27,8 @@ export interface FieldProps extends SchemaOptions {
|
|||
renderDiscriminatorSwitch?: (opts: FieldProps) => JSX.Element;
|
||||
}
|
||||
|
||||
export class Field extends React.PureComponent<FieldProps> {
|
||||
@observer
|
||||
export class Field extends React.Component<FieldProps> {
|
||||
toggle = () => {
|
||||
this.props.field.toggle();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user