fix(auto-complete): fix size of loading icon (#546)

This commit is contained in:
witt
2021-05-27 16:46:05 +08:00
committed by unix
parent 745876ce5f
commit c14909478a

View File

@@ -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<