Skip to content

Commit

Permalink
fix(autocomplete): use JSDoc @default for autoHighlight prop (#561)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Gilgur <[email protected]>
Signed-off-by: Adrien Delannoy <[email protected]>
  • Loading branch information
Adrien-D and agilgur5 authored Jun 10, 2024
1 parent 2c503a8 commit ccb4ced
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/autocomplete/autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export interface AutocompleteProps {
autoCompleteRef?: (api: AutocompleteApi) => any;
filterSuggestions?: boolean;
qeid?: string;
autoHighlight?: true; // ReactAutocomplete.Props['autoHighlight'] is missing the `true` default per https://github.com/argoproj/argo-ui/pull/560#issuecomment-2155872347
/** @default true */ // per https://github.com/reactjs/react-autocomplete/blob/41388f7d7760bf6cf38e7946e43d4fddd9c7c176/lib/Autocomplete.js#L188
autoHighlight?: ReactAutocomplete.Props['autoHighlight'];
}

export const Autocomplete = (props: AutocompleteProps) => {
Expand Down

0 comments on commit ccb4ced

Please sign in to comment.