We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d627c commit 1bf4bc0Copy full SHA for 1bf4bc0
Libraries/Text/RCTUITextField.m
@@ -87,6 +87,22 @@ - (void)setEditable:(BOOL)editable
87
self.enabled = editable;
88
}
89
90
+#pragma mark - Accessibility
91
+
92
+- (BOOL)isAccessibilityElement
93
+{
94
+ // Always return NO to enumerate child elements. Otherwise the "clear text" button is hidden
95
+ // from accessibility interface.
96
+ return NO;
97
+}
98
99
+- (BOOL)accessibilityElementsHidden
100
101
+ // If "accessible" prop is set to false on TextInput, disable all accessible children.
102
+ // Without this function the "clear text" UIButton is still exposed.
103
+ return ![super isAccessibilityElement];
104
105
106
#pragma mark - Caret Manipulation
107
108
- (CGRect)caretRectForPosition:(UITextPosition *)position
0 commit comments