fix: Select clear and loading icons overlap (#19070)

This commit is contained in:
Michael S. Molina 2022-03-09 10:03:30 -03:00 committed by GitHub
parent fd154f7ba6
commit 79a7a5d1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -283,6 +283,7 @@ const getQueryCacheKey = (value: string, page: number, pageSize: number) =>
*/
const Select = (
{
allowClear,
allowNewOptions = false,
ariaLabel,
fetchOnlyOnSearch,
@ -668,6 +669,7 @@ const Select = (
<StyledContainer>
{header}
<StyledSelect
allowClear={!isLoading && allowClear}
aria-label={ariaLabel || name}
dropdownRender={dropdownRender}
filterOption={handleFilterOption}