Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 14, 2025
1 parent 12f234c commit 0ffa9f8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function AutocompleteTextField({
setInputValue: (arg: string) => void
setCurrentSearch: (arg: string) => void
}) {
const { helperText, slotProps = {} } = TextFieldProps
return (
<TextField
onBlur={() => {
Expand All @@ -28,6 +29,14 @@ export default function AutocompleteTextField({
{...params}
{...TextFieldProps}
size="small"
helperText={helperText}
slotProps={{
input: {
...params.InputProps,
// eslint-disable-next-line @typescript-eslint/no-misused-spread
...slotProps.input,
},
}}
placeholder="Search for location"
onChange={e => {
setCurrentSearch(e.target.value)
Expand Down

0 comments on commit 0ffa9f8

Please sign in to comment.