Skip to content

Commit

Permalink
Remove now-unnecessary extra onFocus handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Nov 16, 2023
1 parent 596b377 commit 4d5d1a1
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ export function FieldInput({ field, dataView, onHandleField }: FieldInputProps)
});
};

const handleFocus: React.FocusEventHandler<HTMLDivElement> = () => {
// Force focus on input due to https://github.com/elastic/eui/issues/7170
inputRef?.current?.focus();
};

return (
<div ref={comboBoxWrapperRef}>
<EuiComboBox
Expand All @@ -103,7 +98,6 @@ export function FieldInput({ field, dataView, onHandleField }: FieldInputProps)
isClearable={false}
compressed
fullWidth
onFocus={handleFocus}
data-test-subj="filterFieldSuggestionList"
singleSelection={SINGLE_SELECTION_AS_TEXT_PROPS}
truncationProps={MIDDLE_TRUNCATION_PROPS}
Expand Down

0 comments on commit 4d5d1a1

Please sign in to comment.