Skip to content

Commit

Permalink
Add autohighlight and remove max height override (#3089)
Browse files Browse the repository at this point in the history
  • Loading branch information
agalin920 authored Dec 10, 2024
1 parent 3bfe59a commit 4fa9d1a
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/shell/components/withAi/AIGenerator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ export const AIGenerator = ({
</Tooltip>
</Stack>
<Autocomplete
autoHighlight
disableClearable
isOptionEqualToValue={(option: any, value: any) =>
option.value === value.value
Expand Down Expand Up @@ -542,6 +543,7 @@ export const AIGenerator = ({
</Tooltip>
</Stack>
<Autocomplete
autoHighlight
disableClearable
isOptionEqualToValue={(option: any, value: any) =>
option.value === value.value
Expand All @@ -565,13 +567,6 @@ export const AIGenerator = ({
}}
/>
)}
slotProps={{
paper: {
sx: {
maxHeight: 300,
},
},
}}
/>
</Box>
</Stack>
Expand Down Expand Up @@ -754,6 +749,7 @@ export const AIGenerator = ({
</Tooltip>
</Stack>
<Autocomplete
autoHighlight
disableClearable
isOptionEqualToValue={(option: any, value: any) =>
option.value === value.value
Expand Down Expand Up @@ -803,6 +799,7 @@ export const AIGenerator = ({
</Tooltip>
</Stack>
<Autocomplete
autoHighlight
disableClearable
isOptionEqualToValue={(option: any, value: any) =>
option.value === value.value
Expand All @@ -826,13 +823,6 @@ export const AIGenerator = ({
}}
/>
)}
slotProps={{
paper: {
sx: {
maxHeight: 300,
},
},
}}
/>
</Box>
</Stack>
Expand Down

0 comments on commit 4fa9d1a

Please sign in to comment.