Skip to content

Commit 03fad20

Browse files
committed
lint
1 parent 61f1cc7 commit 03fad20

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/components/Autocomplete/SectionItemsList/SectionItemsList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const DefaultRenderSectionItemsList: RenderSectionItemsList = function ({ sectio
2121
useContext(CioAutocompleteContext);
2222
const { displayShowAllResultsButton, translations } = advancedParameters || {};
2323
const { onSubmit } = getFormProps();
24-
const { type, displayName, displayNoResultsMessage} = section;
24+
const { type, displayName, displayNoResultsMessage } = section;
2525
let sectionTitle = displayName;
2626

2727
if (!sectionTitle) {

src/hooks/useCioAutocomplete.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const useCioAutocomplete = (options: UseCioAutocompleteOptions) => {
9797
}, [zeroStateSections]);
9898

9999
const [query, setQuery] = useState(defaultInput || '');
100-
const [inputFocusState, setInputFocusState] = useState(false);
101100
const previousQuery = usePrevious(query);
102101
const cioClient = useCioClient({ apiKey, cioJsClient, cioJsClientOptions } as CioClientConfig);
103102

@@ -174,13 +173,10 @@ const useCioAutocomplete = (options: UseCioAutocompleteOptions) => {
174173
onChange(e.target.value);
175174
}
176175
},
177-
onBlur: () => {
178-
setInputFocusState(false);
179-
},
176+
onBlur: () => {},
180177
}),
181178
value: query,
182179
onFocus: () => {
183-
setInputFocusState(true);
184180
if (options.onFocus) {
185181
options.onFocus();
186182
}

src/stories/Autocomplete/Component/AdvancedParameters.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,3 @@ addComponentStoryDescription(
151151
`const args = ${stringifyWithDefaults(ShowAllResultsButton.args)}`,
152152
displayShowAllResultsButtonDescription
153153
);
154-

0 commit comments

Comments
 (0)