Add handling in ASButtonNode back for non flag

This commit is contained in:
Michael Schneider
2019-06-13 07:41:13 -07:00
parent 6439dfb922
commit bf34436aff
+8
View File
@@ -105,6 +105,14 @@ CGRect _ASControlNodeGetExpandedBounds(ASControlNode *controlNode);
}
#endif
- (void)setUserInteractionEnabled:(BOOL)userInteractionEnabled
{
[super setUserInteractionEnabled:userInteractionEnabled];
if (!ASActivateExperimentalFeature(ASExperimentalTextNode2A11YContainer)) {
self.isAccessibilityElement = userInteractionEnabled;
}
}
- (void)__exitHierarchy
{
[super __exitHierarchy];