Fabric: Fixed `accessibilityLabel` implementation in RCTParagraphComponentView
Summary: The code fragment `super.accessibilityLabel` always meant "use stored value which came from Props". But after we override the implementation of this getter in the base class, this starts working differently (wrong). This change basically reverts that to original intent. Reviewed By: sahrens Differential Revision: D10350597 fbshipit-source-id: 913951eb08c4ede76fc0e9be76b48d86599bcc62
This commit is contained in:
parent
278023470f
commit
d73254b441
|
@ -77,7 +77,8 @@ using namespace facebook::react;
|
|||
|
||||
- (NSString *)accessibilityLabel
|
||||
{
|
||||
NSString *superAccessibilityLabel = [super accessibilityLabel];
|
||||
NSString *superAccessibilityLabel =
|
||||
RCTNSStringFromStringNilIfEmpty(_props->accessibilityLabel);
|
||||
if (superAccessibilityLabel) {
|
||||
return superAccessibilityLabel;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue