Skip to content

Commit

Permalink
fix: remove warning of addon before (#863)
Browse files Browse the repository at this point in the history
* feat: update summary

* feat: update summary
  • Loading branch information
JohnIsOnTheRoad authored May 19, 2020
1 parent 33085e0 commit 110238c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/src/components/FormItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export const FormItem: React.FC<INextFormItemProps> = topProps => {
return renderComponent({ props: megaComponentProps, state, mutators, form })
}

return <NextFormItem {...itemProps}>
const { addonBefore, addonAfter, ...otherItemProps } = itemProps
return <NextFormItem {...otherItemProps}>
{renderComponent({ props: componentProps, state, mutators, form })}
</NextFormItem>
}}
Expand Down

0 comments on commit 110238c

Please sign in to comment.