Skip to content

Commit

Permalink
fix: compat legal props (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnIsOnTheRoad authored Sep 3, 2020
1 parent 631ab11 commit 5dde72a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/antd/src/components/FormMegaLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const computeAttr = (propAttr, layoutAttr, defaultValue) => {
const StyledLayoutItem = styled((props) => {
const { className, grid, children, addonBefore, addonAfter, labelAlign, ...others } = props
const formItemProps = pickFormItemProps(others)
formItemProps.style = props.style || {}
const cls = classnames({
[className]: true,
'mega-layout-item': true,
Expand Down
1 change: 1 addition & 0 deletions packages/next/src/components/FormMegaLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const computeAttr = (propAttr, layoutAttr, defaultValue) => {
const StyledLayoutItem = styled((props) => {
const { className, grid, children, addonBefore, addonAfter, labelAlign, ...others } = props
const formItemProps = pickFormItemProps(others)
formItemProps.style = props.style || {}
const cls = classnames({
[className]: true,
'mega-layout-item': true,
Expand Down

0 comments on commit 5dde72a

Please sign in to comment.