diff --git a/src/components/atoms/Input/InputElement.tsx b/src/components/atoms/Input/InputElement.tsx index 4f1485238..dbba3f36f 100644 --- a/src/components/atoms/Input/InputElement.tsx +++ b/src/components/atoms/Input/InputElement.tsx @@ -11,7 +11,7 @@ const DefaultInput = (props: InputProps) => ( ) export default function InputElement(props: InputProps): ReactElement { - const { type, options, name, prefix, postfix, small } = props + const { type, options, name, prefix, postfix, small, field } = props switch (type) { case 'select': @@ -21,7 +21,9 @@ export default function InputElement(props: InputProps): ReactElement { className={`${styles.select} ${small && styles.selectSmall}`} {...props} > - + {field !== undefined && field.value === '' && ( + + )} {options && options .sort((a: string, b: string) => a.localeCompare(b))