Fix repository file search (#1867)

This commit is contained in:
Eduard Heimbuch
2021-11-19 14:33:06 +01:00
committed by René Pfeuffer
parent 02bcee5603
commit e58d3dd70c
7 changed files with 87 additions and 11 deletions

View File

@@ -67,20 +67,17 @@ const FilterInput: FC<Props> = ({ filter, value, testId, placeholder, autoFocus,
};
return (
<form
className={classNames("input-field", className)}
onSubmit={handleSubmit}
{...createAttributesForTesting(testId)}
>
<form className={classNames("input-field", className)} onSubmit={handleSubmit}>
<div className="control has-icons-left">
<FixedHeightInput
className="input"
type="search"
placeholder={placeholder || t("filterEntries")}
value={stateValue}
onChange={(event) => setStateValue(event.target.value)}
onChange={event => setStateValue(event.target.value)}
autoFocus={autoFocus || false}
aria-describedby={id}
{...createAttributesForTesting(testId)}
/>
<span className="icon is-small is-left">
<i className="fas fa-filter" />