fix(ui) - filters input value (#604)

* fix(ui) - search filters input field

* fix(ui) - search filters input field
This commit is contained in:
Shekar Siri 2022-07-13 17:20:04 +02:00 committed by GitHub
parent dda55cc315
commit 2c66121562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,12 +35,12 @@ function FilterAutoCompleteLocal(props: Props) {
if(allowDecimals) {
const value = e.target.value;
setQuery(value);
props.onSelect(null, { value });
props.onSelect(null, value);
} else {
const value = e.target.value.replace(/[^\d]/, "");
if (+value !== 0) {
setQuery(value);
props.onSelect(null, { value });
props.onSelect(null, value);
}
}
};