Skip to content

Commit

Permalink
Fix: The number in a numbered list gets duplicated (#5253)
Browse files Browse the repository at this point in the history
  • Loading branch information
trinhvinhtruong96 authored Nov 20, 2023
1 parent 77505ca commit 303530a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lexical-list/src/formatList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export function insertList(editor: LexicalEditor, listType: ListType): void {
if (
$isElementNode(node) &&
node.isEmpty() &&
!$isListItemNode(node) &&
!handled.has(node.getKey())
) {
createListOrMerge(node, listType);
Expand Down

2 comments on commit 303530a

@vercel
Copy link

@vercel vercel bot commented on 303530a Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website

lexical-fbopensource.vercel.app
lexicaljs.com
lexicaljs.org
lexical.dev
www.lexical.dev
lexical-git-main-fbopensource.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 303530a Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground-git-main-fbopensource.vercel.app
lexical-playground-fbopensource.vercel.app
lexical-playground.vercel.app
playground.lexical.dev

Please sign in to comment.