mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
Merge: + client: trim DNS blocklists fields on blur
Close #1634 Squashed commit of the following: commit 5f38da50b2075a9b5967aed39b62a8ab05e57a1c Author: ArtemBaskal <a.baskal@adguard.com> Date: Tue May 12 20:02:05 2020 +0300 + client: Trim fields on blur
This commit is contained in:
parent
a09e59a59d
commit
ead5a16b2a
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,7 @@ const Form = (props) => {
|
|||
className="form-control"
|
||||
placeholder={t('enter_name_hint')}
|
||||
validate={[required]}
|
||||
normalizeOnBlur={data => data.trim()}
|
||||
/>
|
||||
</div>
|
||||
<div className="form__group">
|
||||
|
@ -39,6 +40,7 @@ const Form = (props) => {
|
|||
className="form-control"
|
||||
placeholder={t('enter_url_or_path_hint')}
|
||||
validate={[required, isValidPath]}
|
||||
normalizeOnBlur={data => data.trim()}
|
||||
/>
|
||||
</div>
|
||||
<div className="form__description">
|
||||
|
|
Loading…
Add table
Reference in a new issue