accessibilityStates = [disabled] can not be removed on iOS #21122
Labels
Bug
Platform: iOS
iOS applications.
Resolution: Fixed
A PR that fixes this issue has been merged.
Resolution: Locked
This issue was locked by the bot.
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.5
CPU: x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 40.76 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.3 - /usr/local/bin/node
npm: 5.6.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
IDEs:
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.5.0 => 16.5.0
react-native: 0.57.0 => 0.57.0
npmGlobalPackages:
react-native-app-id: 0.0.5
react-native-cli: 2.0.1
Description
If accessibilityStates is set to [disabled] it can not be removed on iOS by setting accessibilityStates to empty array or null. The Accessibility Inspector still shows the button as disabled.
Reproducible Demo
Simple attached App.js to reproduce by activating button on switch. (needed to rename to txt)
App.txt
The text was updated successfully, but these errors were encountered: