File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
x-pack/plugins/infra/public
components/autocomplete_field Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ interface AutocompleteFieldProps {
2626 placeholder ?: string ;
2727 suggestions : QuerySuggestion [ ] ;
2828 value : string ;
29+ disabled ?: boolean ;
2930 autoFocus ?: boolean ;
3031 'aria-label' ?: string ;
3132}
@@ -55,6 +56,7 @@ export class AutocompleteField extends React.Component<
5556 isValid,
5657 placeholder,
5758 value,
59+ disabled,
5860 'aria-label' : ariaLabel ,
5961 } = this . props ;
6062 const { areSuggestionsVisible, selectedIndex } = this . state ;
@@ -64,6 +66,7 @@ export class AutocompleteField extends React.Component<
6466 < AutocompleteContainer >
6567 < FixedEuiFieldSearch
6668 fullWidth
69+ disabled = { disabled }
6770 inputRef = { this . handleChangeInputRef }
6871 isLoading = { isLoadingSuggestions }
6972 isInvalid = { ! isValid }
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export const LogsToolbar = () => {
6464 isLoadingSuggestions = { isLoadingSuggestions }
6565 isValid = { isFilterQueryDraftValid }
6666 loadSuggestions = { loadSuggestions }
67+ disabled = { isStreaming }
6768 onChange = { ( expression : string ) => {
6869 setSurroundingLogsId ( null ) ;
6970 setLogFilterQueryDraft ( expression ) ;
You can’t perform that action at this time.
0 commit comments