diff --git a/packages/ui/src/ui-component/dropdown/AsyncDropdown.jsx b/packages/ui/src/ui-component/dropdown/AsyncDropdown.jsx index bf4c8bb1..8a7685ea 100644 --- a/packages/ui/src/ui-component/dropdown/AsyncDropdown.jsx +++ b/packages/ui/src/ui-component/dropdown/AsyncDropdown.jsx @@ -5,7 +5,7 @@ import axios from 'axios' // Material import Autocomplete, { autocompleteClasses } from '@mui/material/Autocomplete' -import { Popper, CircularProgress, TextField, Box, Typography } from '@mui/material' +import { Popper, CircularProgress, TextField, Box, Typography, Tooltip } from '@mui/material' import { useTheme, styled } from '@mui/material/styles' // API @@ -175,7 +175,7 @@ export const AsyncDropdown = ({ multiple={multiple} filterSelectedOptions={multiple} size='small' - sx={{ mt: 1, width: '100%' }} + sx={{ mt: 1, width: multiple ? '90%' : '100%' }} open={open} onOpen={() => { setOpen(true) @@ -210,7 +210,8 @@ export const AsyncDropdown = ({ const matchingOptions = multiple ? findMatchingOptions(options, internalValue) : [findMatchingOptions(options, internalValue)].filter(Boolean) - return ( + + const textField = ( ) + + return !multiple ? ( + textField + ) : ( + + {textField} + + ) }} renderOption={(props, option) => (