web-components: Linebreak in lists do not work correctly
Bug Report 🐛
When we press Enter in the middle of a sentence inside of a list, instead of pushing the rest of the sentence to the new line, it inserts a new line and then pushes the rest of the sentence to the new line which creates an extra unneeded line that can be very annoying at times for the user.
Expected Behavior
It should push the rest of the text to the next number without inserting an extra new line
Current Behavior
It inserts a new line and then pushes the rest of the paragraph to the next number.
Possible Solution
Steps to Reproduce
- Paste a sample paragraph into the editor.
- Click on the numbered list button in the toolbar
- Now that the entire paragraph is under number 1 in the list, go to the end of the first line and press
Enter
- You would see an extra line that should not be there.
Context (Environment)
Desktop
- OS: Windows 10
- Browser: Chrome
- Version 88.0.4324.182 (Official Build) (64-bit)
Detailed Description
Possible Implementation
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 2
- Comments: 15 (11 by maintainers)
@Hanaffi please see https://github.com/accordproject/web-components/issues/284#issuecomment-796089929