Skip to content

Commit

Permalink
fix(NcRichText): adjust createElement method for Vue3
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Jan 31, 2025
1 parent 9067f49 commit 87b1576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcRichText/NcRichText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export default {
&& children[0].props.type === 'checkbox') {
const [inputNode, , ...labelParts] = children

const nestedNodeIndex = labelParts.findIndex((child) => ['ul', 'ol', 'li', 'blockquote', 'pre'].includes(child.tag))
const nestedNodeIndex = labelParts.findIndex((child) => ['ul', 'ol', 'li', 'blockquote', 'pre'].includes(child.type))
if (nestedNodeIndex !== -1) {
nestedNode = labelParts[nestedNodeIndex]
labelParts.splice(nestedNodeIndex)
Expand Down

0 comments on commit 87b1576

Please sign in to comment.