dispatch
dispatch copied to clipboard
Pressing enter key empty line should break out of list
Pressing the enter key in this case should break out of the list, but instead it continues to add empty bullets.
is this a problem w/ draft-js, fixable by this open pr from a year ago? https://github.com/facebook/draft-js/pull/769
A bit of a tangent, but what if the user wants to have a nested list? It seems like the expected behaviour would be to press enter and then tab. Don't know how useful it is to support nested lists (or if anyone would even use them) but it's something to consider.
@JimFung I don't think that's contradictory to the bug report.
- To indent the item, cursor is at the start of a bullet point and you Tab
- To break out of the list, cursor is on an empty bullet point line and you Enter
Good point @blx