Skip to content

Commit

Permalink
Changes alerting search bar to use EuiFieldSearch component (#85821)
Browse files Browse the repository at this point in the history
* Changes search bar to use search field specific eui component

* Update type checks
  • Loading branch information
mdefazio authored Dec 16, 2020
1 parent 5b10061 commit 2f5f148
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ import {
EuiBasicTable,
EuiBadge,
EuiButton,
EuiFieldText,
EuiFieldSearch,
EuiFlexGroup,
EuiFlexItem,
EuiIcon,
EuiSpacer,
EuiLink,
EuiLoadingSpinner,
Expand Down Expand Up @@ -444,10 +443,10 @@ export const AlertsList: React.FunctionComponent = () => {
</EuiFlexItem>
) : null}
<EuiFlexItem>
<EuiFieldText
<EuiFieldSearch
fullWidth
isClearable
data-test-subj="alertSearchField"
prepend={<EuiIcon type="search" />}
onChange={(e) => setInputText(e.target.value)}
onKeyUp={(e) => {
if (e.keyCode === ENTER_KEY) {
Expand Down

0 comments on commit 2f5f148

Please sign in to comment.