File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ class CustomFileInput extends React.Component {
103103 type = "file"
104104 { ...attributes }
105105 ref = { innerRef }
106+ aria-invalid = { invalid }
106107 className = { classNames (
107108 validationClassNames ,
108109 mapToCssModules ( "custom-file-input" , cssModule )
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ function CustomInput(props) {
5555 { ...rest }
5656 ref = { innerRef }
5757 className = { classNames ( validationClassNames , customClass ) }
58+ aria-invalid = { invalid }
5859 >
5960 { children }
6061 </ select >
@@ -70,6 +71,7 @@ function CustomInput(props) {
7071 < input
7172 { ...attributes }
7273 ref = { innerRef }
74+ aria-invalid = { invalid }
7375 className = { classNames ( validationClassNames , customClass ) }
7476 />
7577 ) ;
@@ -90,6 +92,7 @@ function CustomInput(props) {
9092 { ...rest }
9193 type = { type === "switch" ? "checkbox" : type }
9294 ref = { innerRef }
95+ aria-invalid = { invalid }
9396 className = { classNames (
9497 validationClassNames ,
9598 mapToCssModules ( "custom-control-input" , cssModule )
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ class Input extends React.Component {
127127 delete attributes . children ;
128128 }
129129
130- return < Tag { ...attributes } ref = { innerRef } className = { classes } /> ;
130+ return < Tag { ...attributes } ref = { innerRef } className = { classes } aria-invalid = { invalid } /> ;
131131 }
132132}
133133
You can’t perform that action at this time.
0 commit comments