-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accessibilityState "disabled" can NOT be changed after being set to its initial value #30246
Comments
|
@hramos Could you have a look, please? |
|
Hello @palexs, couple things. Could you verify this occurs on the latest version and provide that repro? |
Just a quick note, @palexs, please avoid pinging me on individual issues especially if they were just opened. We have a issue triage process in place and folks will look at each issue in order. Thanks! |
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
This issue was closed because the author hasn't provided the requested feedback after 7 days. |
Description
If
accessibilityState
prop is set to "disabled" it can not be changed by settingaccessibilityState
to empty object/null or to false, e.g.{ disabled: false }
.React Native version:
Snack, code example, screenshot, or link to a repository:
Whenever
this.state.disabled
changes its value fromfalse
totrue
and vise versa theacessibilityState
still keeps its initial value and does not change accordingly.Miscellaneous
Additionally, it seems like changes introduced in Accessibility API in RN 0.61 (deprecation of
accessibilityTraits
andaccessibilityComponentType
,accessibilityStates
->accessibilityState
) have made #21122 reproducible again.Providing
key={new Date()}
to a component helps to flip itsaccessibilityState
"disabled" value.The text was updated successfully, but these errors were encountered: