File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ class SingleOtpInput extends PureComponent {
8686 style = { { display : 'flex' , alignItems : 'center' } }
8787 >
8888 < input
89- aria-label = { `${
90- index === 0 ? 'Please enter verification code. ' : ''
91- } ${ isInputNum ? 'Digit' : 'Character' } ${ index + 1 } `}
89+ aria-label = { `${ index === 0 ? 'Please enter verification code. ' : ''
90+ } ${ isInputNum ? 'Digit' : 'Character' } ${ index + 1 } `}
9291 autoComplete = "off"
9392 style = { Object . assign (
9493 { width : '1em' , textAlign : 'center' } ,
@@ -334,6 +333,8 @@ class OtpInput extends Component {
334333 isInputNum = { isInputNum }
335334 isInputSecure = { isInputSecure }
336335 className = { className }
336+ data-cy = { this . props [ "data-cy" ] ? `${ this . props [ "data-cy" ] } -${ i } ` : null }
337+ data-testid = { this . props [ "data-testid" ] ? `${ this . props [ "data-testid" ] } -${ i } ` : null }
337338 />
338339 ) ;
339340 }
You can’t perform that action at this time.
0 commit comments