fix: format text class elements boundary error

This commit is contained in:
Hufe921
2024-04-04 19:31:40 +08:00
parent 46e153d588
commit 95b337de05
+1 -1
View File
@@ -358,7 +358,7 @@ export function formatElementList(
}
i--
} else if (
(!el.type || el.type === ElementType.TEXT) &&
(!el.type || TEXTLIKE_ELEMENT_TYPE.includes(el.type)) &&
el.value.length > 1
) {
elementList.splice(i, 1)