This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
Pressing enter in an empty nested list item creates several more empty list items #497
Labels
bug
Something isn't working
If you make a nested list, something like this:
Then hit enter in that last empty item, you end up with something like this:
Note, this also happens in further nested lists, it just produces the same 3 empty nodes 1 level of nesting higher than the level you were at when you hit enter on the initial empty list item.
To Reproduce
Steps to reproduce the behavior:
Edit: It also looks like you need to specify prosemirror-transform 1.2.5 in resolutions for this issue to occur, but a fresh install in a CRA project also exhibits these symptoms with the resolutions applied.
My package.json for the fresh CRA project
Expected behavior
It should probably step back up in list levels until it's at the top level then revert to an empty paragraph after that.
Version
11.14.0
Screenshots
Before:
After:
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A / not tested there
The text was updated successfully, but these errors were encountered: