@@ -35,7 +35,7 @@ const FormField = ({ field, isGroupField }) => {
35
35
placeholder = { field . placeholder }
36
36
value = { input . value ?? "" }
37
37
type = "text"
38
- className = { meta . error && ( meta . touched || field . showError ) ? "error" : "" }
38
+ className = { meta . error && meta . touched ? "error" : "" }
39
39
readonly = { field . readonly }
40
40
onChange = { input . onChange }
41
41
onBlur = { input . onBlur }
@@ -51,7 +51,7 @@ const FormField = ({ field, isGroupField }) => {
51
51
onChange = { input . onChange }
52
52
onBlur = { input . onBlur }
53
53
onFocus = { input . onFocus }
54
- className = { meta . error && ( meta . touched || field . showError ) ? "error" : "" }
54
+ className = { meta . error && meta . touched ? "error" : "" }
55
55
/>
56
56
) }
57
57
{ field . type === FORM_FIELD_TYPE . TEXTAREA && (
@@ -61,7 +61,7 @@ const FormField = ({ field, isGroupField }) => {
61
61
onChange = { input . onChange }
62
62
onBlur = { input . onBlur }
63
63
onFocus = { input . onFocus }
64
- className = { meta . error && ( meta . touched || field . showError ) ? "error" : "" }
64
+ className = { meta . error && meta . touched ? "error" : "" }
65
65
/>
66
66
) }
67
67
{ field . type === FORM_FIELD_TYPE . DATE && (
@@ -71,7 +71,7 @@ const FormField = ({ field, isGroupField }) => {
71
71
onChange = { input . onChange }
72
72
onBlur = { input . onBlur }
73
73
onFocus = { input . onFocus }
74
- className = { meta . error && ( meta . touched || field . showError ) ? "error" : "" }
74
+ className = { meta . error && meta . touched ? "error" : "" }
75
75
/>
76
76
) }
77
77
{ field . type === FORM_FIELD_TYPE . SELECT && (
@@ -84,7 +84,7 @@ const FormField = ({ field, isGroupField }) => {
84
84
onFocus = { input . onFocus }
85
85
/>
86
86
) }
87
- { ( field . isRequired || field . customValidator ) && meta . error && ( meta . touched || field . showError ) && (
87
+ { ( field . isRequired || field . customValidator ) && meta . error && meta . touched && (
88
88
< div styleName = "field-error" > { meta . error } </ div >
89
89
) }
90
90
</ div >
@@ -112,7 +112,6 @@ FormField.prototype = {
112
112
maxLength : PT . number ,
113
113
styleName : PT . string ,
114
114
readonly : PT . string ,
115
- showError : PT . bool
116
115
} )
117
116
) . isRequired ,
118
117
isGroupField : PT . bool ,
0 commit comments