File tree 2 files changed +14
-5
lines changed
packages/react-components
source/react/library/form
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,16 @@ const defaultProps = {
73
73
*/
74
74
export const formInputInterface = omit (
75
75
[
76
- 'requiredFieldMessage' ,
77
- 'validateOnLoad' ,
78
- 'validator' ,
79
76
'className' ,
80
77
'description' ,
81
- 'style' ,
82
- 'labelType' ,
83
78
'inline' ,
84
79
'inlineLabelWidth' ,
80
+ 'innerClassName' ,
81
+ 'labelType' ,
82
+ 'requiredFieldMessage' ,
83
+ 'style' ,
84
+ 'validateOnLoad' ,
85
+ 'validator' ,
85
86
] ,
86
87
propTypes ,
87
88
) ;
Original file line number Diff line number Diff line change @@ -95,6 +95,14 @@ describe('<FormField />', () => {
95
95
) ;
96
96
} ) ;
97
97
98
+ it ( 'applies an innerClassName to the inner input element' , ( ) => {
99
+ expect (
100
+ mount ( < FormField { ...requiredProps } innerClassName = "hello-world" /> ) . find (
101
+ Input ,
102
+ ) ,
103
+ ) . to . have . prop ( 'className' , 'hello-world' ) ;
104
+ } ) ;
105
+
98
106
it ( 'renders an Input for all Input supported types' , ( ) => {
99
107
INPUT_SUPPORTED_TYPES . forEach ( type => {
100
108
expect (
You can’t perform that action at this time.
0 commit comments