From 910f75662f62dc38f068a71feb4cd68150b83341 Mon Sep 17 00:00:00 2001 From: xukuanzhuo Date: Tue, 5 Dec 2023 14:26:50 +0800 Subject: [PATCH] fix: empty list don't render placeholder --- src/editor/core/draw/Draw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index c2da99d..7c32093 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1823,7 +1823,7 @@ export class Draw { this.waterMark.render(ctx) } // 绘制空白占位符 - if (this.elementList.length <= 1) { + if (this.elementList.length <= 1 && !this.elementList[0]?.listId) { this.placeholder.render(ctx) } }