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

Commit

Permalink
[iOS] fix richtext show error on eagle
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Apr 9, 2019
1 parent 5c398f7 commit 67cb4e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/sdk/WeexSDK/Sources/Component/WXRichText.mm
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ - (instancetype)initWithRef:(NSString *)ref
- (void)fillAttributes:(NSDictionary *)attributes
{
id value = attributes[@"value"];
if ([value isKindOfClass:[NSString class]]) {
value = [WXUtility objectFromJSON:value];
}
if ([value isKindOfClass: [NSArray class]]) {
[_richNodes removeAllObjects];

Expand Down

0 comments on commit 67cb4e4

Please sign in to comment.