mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix: Resetting backgroundImage throws
This commit is contained in:
@@ -1480,6 +1480,11 @@ export const backgroundImageProperty = new CssProperty<Style, string>({
|
||||
let url: string = newValue;
|
||||
let isValid = false;
|
||||
|
||||
if (url === undefined){
|
||||
style.backgroundInternal = currentBackground.withImage(undefined);
|
||||
return;
|
||||
}
|
||||
|
||||
let match = url.match(pattern);
|
||||
if (match && match[2]) {
|
||||
url = match[2];
|
||||
|
||||
Reference in New Issue
Block a user