Skip to content

Commit

Permalink
Revert "[iOS] Fix TextInput clear button accessibility"
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeal authored Dec 15, 2017
1 parent 6585b46 commit 0ef56be
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Libraries/Text/RCTTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -293,18 +293,6 @@ - (void)didMoveToWindow
[self reactFocusIfNeeded];
}

- (BOOL)isAccessibilityElement {
// Always return NO to enumerate child elements. Otherwise the "clear text" button is hidden
// from accessibility interface.
return NO;
}

- (BOOL)accessibilityElementsHidden {
// If "accessible" prop is set to false on TextInput, disable all accessible children.
// Without this function the "clear text" UIButton is still exposed.
return ![super isAccessibilityElement];
}

#pragma mark - UITextFieldDelegate (Proxied)

- (BOOL)shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
Expand Down

0 comments on commit 0ef56be

Please sign in to comment.