mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user