fix(ui): drop useless check

This check doesn't seem to get trigger, can't simulate 'enter' method in any way
This commit is contained in:
Łukasz Mierzwa
2018-08-30 20:15:19 +01:00
parent c0131758d2
commit 268a5bbcc1

View File

@@ -49,11 +49,10 @@ const FilterInput = observer(
}
onChange = action((event, { newValue, method }) => {
if (method === "enter") {
event.preventDefault();
} else {
this.inputStore.value = newValue;
}
// onChange here handles change for the user input in the filter bar
// we need to update inputStore.value every time user types in something
event.preventDefault();
this.inputStore.value = newValue;
});
onSubmit = action(event => {