Skip to content

Commit

Permalink
fix(auto-complete): fix size of loading icon (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
unix committed Aug 13, 2021
1 parent 745876c commit c149094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/auto-complete/auto-complete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const childrenToOptionsNode = (options: Array<AutoCompleteOption>) =>
// When the search is seted, at least one element should exist to avoid re-render.
const getSearchIcon = (searching?: boolean) => {
if (searching === undefined) return null
return searching ? <Loading size="medium" /> : <span />
return searching ? <Loading size="small" /> : <span />
}

const AutoComplete = React.forwardRef<
Expand Down

0 comments on commit c149094

Please sign in to comment.