Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Children in a list item get deleted after enter #886

Closed
samu opened this issue Jan 18, 2019 · 3 comments
Closed

Children in a list item get deleted after enter #886

samu opened this issue Jan 18, 2019 · 3 comments

Comments

@samu
Copy link

samu commented Jan 18, 2019

Issue details

Children in a list item get deleted after enter

Steps to reproduce

https://fallacious-harbor.glitch.me

  1. Place cursor on list item after two
  2. Press enter

The child node three gets deleted. I wonder if this is intended. I'm surprised by the behavior - i would expect a new empty list item to be created.

ProseMirror version

Versions that are available via the examples.

@samu samu changed the title Child list gets deleted after enter Children in a list item get deleted after enter Jan 18, 2019
@marijnh
Copy link
Member

marijnh commented Jan 18, 2019

No, that's not intended. Looks like a problem in the liftEmptyBlock command.

@katepol
Copy link

katepol commented Aug 3, 2020

@marijnh when do you plan to take a look on this issue?

@marijnh
Copy link
Member

marijnh commented Aug 4, 2020

This patch should help with this.

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

No branches or pull requests

3 participants