Skip to content

Commit 69f33f3

Browse files
[fix] Clear CSS background variable when canvas background image is removed (#4034)
1 parent b81c2f7 commit 69f33f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/colorPaletteService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ export const useColorPaletteService = () => {
137137
'--bg-img',
138138
`url('${backgroundImage}') no-repeat center /cover`
139139
)
140+
} else {
141+
rootStyle.removeProperty('--bg-img')
140142
}
141143
}
142144
}

0 commit comments

Comments
 (0)