mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-26 22:42:51 +08:00
fix(auto-complete): fix size of loading icon (#546)
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user