diff --git a/src/renderers/Form/FieldSet.tsx b/src/renderers/Form/FieldSet.tsx index c69f5ee04..1416add50 100644 --- a/src/renderers/Form/FieldSet.tsx +++ b/src/renderers/Form/FieldSet.tsx @@ -8,6 +8,7 @@ export interface FieldSetProps extends RendererProps { collapsed?: boolean; mode?: 'normal' | 'inline' | 'horizontal' | 'row'; size?: 'xs' | 'sm' | 'md' | 'lg' | 'base'; + formClassName?: string; collapsable?: boolean; horizontal: { left: string; @@ -39,7 +40,8 @@ export default class FieldSetControl extends React.Component formMode, $path, classnames: cx, - store + store, + formClassName } = this.props; if (!controls) { @@ -48,7 +50,7 @@ export default class FieldSetControl extends React.Component let props: any = { store, - data: store.data, + data: store!.data, render }; mode && (props.mode = mode); @@ -56,7 +58,7 @@ export default class FieldSetControl extends React.Component horizontal && (props.horizontal = horizontal); return ( -
+
{renderFormItems({controls}, ($path as string).replace(/^.*form\//, ''), props)}
);