From f7cf600fe1abc92ddccdbadf30315d6f9785994f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 8 Jul 2020 20:51:27 +0200 Subject: adding videos to the database --- animism-align/frontend/common/form.component.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'animism-align/frontend/common') diff --git a/animism-align/frontend/common/form.component.js b/animism-align/frontend/common/form.component.js index f3775a2..2f9162e 100644 --- a/animism-align/frontend/common/form.component.js +++ b/animism-align/frontend/common/form.component.js @@ -8,8 +8,9 @@ export const TextInput = props => ( type="text" required={props.required} onChange={props.onChange} + onBlur={props.onBlur} name={props.name} - value={props.data[props.name]} + value={props.data[props.name] || ""} placeholder={props.placeholder} autoComplete={props.autoComplete} /> @@ -17,7 +18,7 @@ export const TextInput = props => ( ) export const LabelDescription = props => ( -