Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/components/ReactSearchAutocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface ReactSearchAutocompleteProps<T> {
maxResults?: number
placeholder?: string
autoFocus?: boolean
disabled?:boolean
styling?: DefaultTheme
resultStringKeyName?: string
inputSearchString?: string
Expand Down Expand Up @@ -60,6 +61,7 @@ export default function ReactSearchAutocomplete<T>({
inputSearchString = '',
formatResult,
showNoResults = true,
disabled=false,
showNoResultsText = 'No results',
showItemsOnFocus = false,
maxLength = 0,
Expand Down Expand Up @@ -233,6 +235,7 @@ export default function ReactSearchAutocomplete<T>({
eraseResults={eraseResults}
autoFocus={autoFocus}
onFocus={handleOnFocus}
disabled={disabled}
onClear={onClear}
placeholder={placeholder}
showIcon={showIcon}
Expand Down
2 changes: 2 additions & 0 deletions src/components/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface SearchInputProps {
showIcon: boolean
showClear: boolean
maxLength: number
disabled:boolean
}

export default function SearchInput({
Expand All @@ -28,6 +29,7 @@ export default function SearchInput({
placeholder,
showIcon = true,
showClear = true,
disabled,
maxLength
}: SearchInputProps) {
const ref = useRef<HTMLInputElement>(null)
Expand Down