From 268a5bbcc1f927a838fbddeb7dde8cffef9abdec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 30 Aug 2018 20:15:19 +0100 Subject: [PATCH] fix(ui): drop useless check This check doesn't seem to get trigger, can't simulate 'enter' method in any way --- ui/src/Components/NavBar/FilterInput/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ui/src/Components/NavBar/FilterInput/index.js b/ui/src/Components/NavBar/FilterInput/index.js index c8c691688..fb075f9ec 100644 --- a/ui/src/Components/NavBar/FilterInput/index.js +++ b/ui/src/Components/NavBar/FilterInput/index.js @@ -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 => {