mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "1/2 TextInput accessibilityErrorMessage (Talkback, Android)"
Summary: This diff is reverting PR https://github.com/facebook/react-native/pull/33468 Due to an increase of java.lang.IllegalStateException caused by the PR Original commit changeset: cd80e9a1be8f Original Phabricator Diff: D38410635 Changelog: [Android][Fixed] - removed logic that calls the [AccessibilityNodeInfo#setError][10] and [#setContentInvalid][13] method to display the error message in the TextInput - Revert of PR https://github.com/facebook/react-native/pull/33468 Reviewed By: NickGerleman, makovkastar Differential Revision: D44032331 fbshipit-source-id: 732ed0cf23e4f30ae00c51dace851a3fdfe65c01
This commit is contained in:
1 parent
21d530208f
commit
ca0d565a3c
16 files changed
+10
-280
No files matched your search
@@ -561,14 +561,6 @@ export type Props = $ReadOnly<{|
|
||||
...IOSProps,
|
||||
...AndroidProps,
|
||||
|
||||
/**
|
||||
* String to be read by screenreaders to indicate an error state. The acceptable parameters
|
||||
* of accessibilityErrorMessage is a string. Setting accessibilityInvalid to true activates
|
||||
* the error message. Setting accessibilityInvalid to false removes the error message.
|
||||
*/
|
||||
accessibilityErrorMessage?: ?Stringish,
|
||||
accessibilityInvalid?: ?boolean,
|
||||
|
||||
/**
|
||||
* Can tell `TextInput` to automatically capitalize certain characters.
|
||||
*
|
||||
@@ -1373,12 +1365,6 @@ function InternalTextInput(props: Props): React.Node {
|
||||
}
|
||||
|
||||
const accessible = props.accessible !== false;
|
||||
|
||||
const accessibilityErrorMessage =
|
||||
props.accessibilityInvalid === true
|
||||
? props.accessibilityErrorMessage
|
||||
: null;
|
||||
|
||||
const focusable = props.focusable !== false;
|
||||
|
||||
const config = React.useMemo(
|
||||
@@ -1453,7 +1439,6 @@ function InternalTextInput(props: Props): React.Node {
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
{...eventHandlers}
|
||||
accessibilityErrorMessage={accessibilityErrorMessage}
|
||||
accessibilityState={_accessibilityState}
|
||||
accessible={accessible}
|
||||
submitBehavior={submitBehavior}
|
||||
@@ -1505,7 +1490,6 @@ function InternalTextInput(props: Props): React.Node {
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
{...eventHandlers}
|
||||
accessibilityErrorMessage={accessibilityErrorMessage}
|
||||
accessibilityState={_accessibilityState}
|
||||
accessibilityLabelledBy={_accessibilityLabelledBy}
|
||||
accessible={accessible}
|
||||
|
||||
Reference in new issue
Block a user