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

Commit 481d811

Browse files
committed
[iOS] fix backgroundColor bug when modify div color
1 parent 8472133 commit 481d811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/sdk/WeexSDK/Sources/View/WXComponent+ViewManagement.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ - (void)_resetStyles:(NSArray *)styles
314314
[self setNeedsDisplay];
315315
}
316316
if (styles && [styles containsObject:@"backgroundImage"]) {
317-
_backgroundImage = @"linear-gradient(to left,rgba(255,255,255,0),rgba(255,255,255,0))"; // if backgroundImage is nil, give defalut color value.
317+
_backgroundImage = nil;
318318
[self setGradientLayer];
319319
}
320320

0 commit comments

Comments
 (0)