Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Lists do not auto-merge properly #26

Open
newageoflight opened this issue Feb 7, 2021 · 1 comment
Open

Lists do not auto-merge properly #26

newageoflight opened this issue Feb 7, 2021 · 1 comment

Comments

@newageoflight
Copy link

newageoflight commented Feb 7, 2021

Deleting the middle item will cause the list to split into two separate lists rather than joining together.

To reproduce: create a numbered list, create 3 items. Delete the middle item. The resulting list will look like:

1. one
1. three

When it should look something like:

1. one
2. three

Possibly related to Issue #8.

@YaoKaiLun
Copy link

YaoKaiLun commented Jun 8, 2021

I have the same problem. I thought it caused by /GitbookIO/slate-edit-list using canMerge(child, next) to judge but productboard/slate-edit-list using canMerge(node, previousSiblingNode) .

When you reedit 1.thrree, it will be corrected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants