Skip to content

Commit

Permalink
Add deprecated notice
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJDev committed Jul 29, 2024
1 parent 3544fe5 commit 36b8074
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/react/src/Autocomplete/Autocomplete.docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"name": "openOnFocus",
"type": "boolean",
"defaultValue": "false",
"description": "Whether the associated autocomplete menu should open on an input focus event"
"description": "Whether the associated autocomplete menu should open on an input focus event",
"deprecated": true
}
],
"passthrough": {
Expand Down
7 changes: 5 additions & 2 deletions packages/react/src/Autocomplete/AutocompleteInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ import useSafeTimeout from '../hooks/useSafeTimeout'
type InternalAutocompleteInputProps = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
as?: React.ComponentType<React.PropsWithChildren<any>>
// When false, the autocomplete menu will not render either on mouse click or
// keyboard focus.

/**
* @deprecated `openOnFocus` is deprecated and will be removed in v38.
* When `true`, autocomplete menu will show on focus or click.
*/
openOnFocus?: boolean
}

Expand Down

0 comments on commit 36b8074

Please sign in to comment.