Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: James Rowe <jamesrowe08@gmail.com>
This commit is contained in:
parent
e61080c312
commit
facd1a4376
|
@ -66,9 +66,7 @@ describe('SearchBar', () => {
|
|||
};
|
||||
|
||||
const simulateTypeChar = async (text: string) => {
|
||||
await waitFor(() =>
|
||||
getSearchProps(component).onKeyUpCapture({ currentTarget: { value: text } })
|
||||
);
|
||||
await waitFor(() => getSearchProps(component).onInput({ currentTarget: { value: text } }));
|
||||
};
|
||||
|
||||
const getDisplayedOptionsTitle = () => {
|
||||
|
|
|
@ -398,8 +398,7 @@ export function SearchBar({
|
|||
</EuiHeaderSectionItemButton>
|
||||
}
|
||||
searchProps={{
|
||||
onKeyUpCapture: (e: React.KeyboardEvent<HTMLInputElement>) =>
|
||||
setSearchValue(e.currentTarget.value),
|
||||
onInput: (e: React.UIEvent<HTMLInputElement>) => setSearchValue(e.currentTarget.value),
|
||||
'data-test-subj': 'nav-search-input',
|
||||
inputRef: setSearchRef,
|
||||
compressed: true,
|
||||
|
|
Loading…
Reference in a new issue