From ead5a16b2a225de42db8d8f85342de84b0411214 Mon Sep 17 00:00:00 2001 From: Artem Baskal Date: Wed, 13 May 2020 15:15:22 +0300 Subject: [PATCH] Merge: + client: trim DNS blocklists fields on blur Close #1634 Squashed commit of the following: commit 5f38da50b2075a9b5967aed39b62a8ab05e57a1c Author: ArtemBaskal Date: Tue May 12 20:02:05 2020 +0300 + client: Trim fields on blur --- client/src/components/Filters/Form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/Filters/Form.js b/client/src/components/Filters/Form.js index 4056802a..9e395f2e 100644 --- a/client/src/components/Filters/Form.js +++ b/client/src/components/Filters/Form.js @@ -28,6 +28,7 @@ const Form = (props) => { className="form-control" placeholder={t('enter_name_hint')} validate={[required]} + normalizeOnBlur={data => data.trim()} />
@@ -39,6 +40,7 @@ const Form = (props) => { className="form-control" placeholder={t('enter_url_or_path_hint')} validate={[required, isValidPath]} + normalizeOnBlur={data => data.trim()} />