Skip to content

Commit

Permalink
fix(@uform/antd): Fix Antd Input loading state automatically loses fo…
Browse files Browse the repository at this point in the history
…cus (#207)
  • Loading branch information
janryWang authored Jul 29, 2019
1 parent d59436b commit 3824942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/antd/src/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ export const mapStyledProps = (
) => {
if (loading) {
props.state = props.state || 'loading'
props.suffix = (
props.suffix = props.suffix || (
<Icon type="loading" style={{ color: 'rgba(0, 0, 0, 0.25)' }} />
)
} else {
props.suffix = props.suffix || <span />
}
if (size) {
props.size = size
Expand Down

0 comments on commit 3824942

Please sign in to comment.