Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Bug: Incorrect list item creation under certain circumstances. #46

Closed
deep-c opened this issue May 11, 2017 · 2 comments
Closed

Bug: Incorrect list item creation under certain circumstances. #46

deep-c opened this issue May 11, 2017 · 2 comments
Labels

Comments

@deep-c
Copy link

deep-c commented May 11, 2017

Hi,

https://gitbookio.github.io/slate-edit-list/

If you place your cursor at the end of this line for example Third item in the list, with a nested list and press enter a new child item is created however it looks like another parent list is created at the same level of what use to be the first child First item in the nested list.

I would presume what should occur is that it would just create a new list item at the same level of the item enter was pressed on.

On another note, is it possible to disable or prevent certain list edit behaviour occuring. For example i would like to stop the block splitting behaviour being possible (shift + enter).

Thanks

@Soreine Soreine added the bug label May 12, 2017
@ncammarata
Copy link

Also ran into this today as well. Regarding your sidenote, @deep-c, comment out

if (data.isShift) {
return null;
}
to remove the shift-enter functionality (I'm assuming here you want shift-enter to create a new item)

@Soreine
Copy link
Contributor

Soreine commented Nov 7, 2017

The bug should be fixed.
I opened an issue #59 concerning behavior options

@Soreine Soreine closed this as completed Nov 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants