Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit 67cb4e4

Browse files
committed
[iOS] fix richtext show error on eagle
1 parent 5c398f7 commit 67cb4e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ios/sdk/WeexSDK/Sources/Component/WXRichText.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ - (instancetype)initWithRef:(NSString *)ref
153153
- (void)fillAttributes:(NSDictionary *)attributes
154154
{
155155
id value = attributes[@"value"];
156+
if ([value isKindOfClass:[NSString class]]) {
157+
value = [WXUtility objectFromJSON:value];
158+
}
156159
if ([value isKindOfClass: [NSArray class]]) {
157160
[_richNodes removeAllObjects];
158161

0 commit comments

Comments
 (0)