From c02a96cb8a24514f8d3aa8386d915e5e9e42050f Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Tue, 25 Apr 2023 21:03:27 +0800 Subject: [PATCH] fix: unset list error --- src/editor/core/command/CommandAdapt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/command/CommandAdapt.ts b/src/editor/core/command/CommandAdapt.ts index e2f99fa..2ffe1ef 100644 --- a/src/editor/core/command/CommandAdapt.ts +++ b/src/editor/core/command/CommandAdapt.ts @@ -429,7 +429,7 @@ export class CommandAdapt { const changeElementList = this.range.getRangeElementList() if (!changeElementList || !changeElementList.length) return // 如果包含列表则设置为取消列表 - const isUnsetList = changeElementList.find(el => el.listType) + const isUnsetList = changeElementList.find(el => el.listType === listType && el.listStyle === listStyle) // 设置值 const listId = getUUID() changeElementList.forEach(el => {