Repository navigation
Commit 2a3d836
Reuse TouchableHighlight accessibility state without ARIA overrides (#59807)
Summary:
Use the supplied `accessibilityState` as the default and only build a new state object when an ARIA state prop overrides it. This avoids reconstructing a sparse state object with extra undefined fields when no ARIA override is supplied. ARIA precedence and the explicit `disabled` override are unchanged.
Refresh the affected snapshots and assert that the button keeps its empty accessibility state.
Changelog: [Internal]
Differential Revision: D1298851431 parent 0e4af15 commit 2a3d836
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | | - | |
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
| |||
0 commit comments