Skip to content

Commit

Permalink
fix(@uform/antd): Warning Received true for a non-boolean attribute…
Browse files Browse the repository at this point in the history
… `inline` (#494)
  • Loading branch information
Godi13 authored and janryWang committed Dec 10, 2019
1 parent a6dcc18 commit 46fbcb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/antd/src/compat/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ import {
export const CompatAntdForm: React.FC<FormProps &
IFormItemTopProps &
PreviewTextConfigProps> = props => {
const { inline, ...rest } = props;
return (
<FormItemProvider {...props}>
<PreviewText.ConfigProvider value={props}>
<Form
{...props}
{...rest}
labelCol={normalizeCol(props.labelCol)}
wrapperCol={normalizeCol(props.wrapperCol)}
layout={props.inline ? 'inline' : props.layout}
layout={inline ? 'inline' : props.layout}
form={undefined}
/>
</PreviewText.ConfigProvider>
Expand Down

0 comments on commit 46fbcb4

Please sign in to comment.