Skip to content

Commit 17b36e2

Browse files
authored
fix: clear old background when background enabled in background (#3192)
1 parent 1682a1d commit 17b36e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/x6-plugin-scroller/src/scroller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ export namespace ScrollerImpl {
12661266
result.background == null
12671267
) {
12681268
result.background = graphOptions.background
1269-
delete graphOptions.background
1269+
options.graph.background.clear()
12701270
}
12711271

12721272
return result as ScrollerImpl.Options

0 commit comments

Comments
 (0)