mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix flipped accessiblityState diffing (#54574)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54574 Props 2.0 diffing had the old and new accessibilityState flipped in the HostPlatformViewProps implementation, which resulted in the disabled state output being flipped on change. Changelog: [Internal] Reviewed By: shwanton Differential Revision: D87293652 fbshipit-source-id: c3fc358f355a3465a59a7cd43b4b7ca79ca16bbb
This commit is contained in:
1 parent
d314e5f4e4
commit
936141f399
1 file changed
+1
-1
+1
-1
@@ -936,7 +936,7 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
|
||||
|
||||
if (accessibilityState != oldProps->accessibilityState) {
|
||||
updateAccessibilityStateProp(
|
||||
result, oldProps->accessibilityState, accessibilityState);
|
||||
result, accessibilityState, oldProps->accessibilityState);
|
||||
}
|
||||
|
||||
if (accessibilityLabel != oldProps->accessibilityLabel) {
|
||||
|
||||
Reference in new issue
Block a user