File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -225,21 +225,18 @@ export default class TextField extends BaseInput {
225
225
}
226
226
227
227
getAccessibilityInfo ( ) {
228
- const { floatingPlaceholder, placeholder, expandable, value} = this . getThemeProps ( ) ;
228
+ const { floatingPlaceholder, placeholder} = this . getThemeProps ( ) ;
229
+ const accessibilityState = this . isDisabled ( ) ? { disabled : true } : undefined ;
230
+ let accessibilityLabel = floatingPlaceholder ? this . props . accessibilityLabel || placeholder : '' ;
229
231
230
- let accessibilityLabel = floatingPlaceholder ? placeholder : undefined ;
231
232
if ( this . isRequiredField ( ) ) {
232
- accessibilityLabel = `${ accessibilityLabel || '' } . Mandatory` ;
233
- }
234
- if ( expandable ) {
235
- accessibilityLabel = `${ accessibilityLabel || '' } . ${ value || '' } ` ;
233
+ accessibilityLabel = `${ accessibilityLabel } . Mandatory` ;
236
234
}
237
235
238
- const accessibilityStates = this . isDisabled ( ) ? [ 'disabled' ] : [ ] ;
239
236
return {
240
237
accessibilityLabel,
241
238
// on Android accessibilityStates cause issues with expandable input
242
- accessibilityStates : Constants . isIOS ? accessibilityStates : undefined
239
+ accessibilityState : Constants . isIOS ? accessibilityState : undefined
243
240
} ;
244
241
}
245
242
You can’t perform that action at this time.
0 commit comments