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

Cannot add list item when there's a link at the end #11606

Closed
swissspidy opened this issue Nov 7, 2018 · 3 comments
Closed

Cannot add list item when there's a link at the end #11606

swissspidy opened this issue Nov 7, 2018 · 3 comments
Labels
[Block] List Affects the List Block [Type] Bug An existing feature does not function as intended

Comments

@swissspidy
Copy link
Member

Describe the bug

If a list item ends with a link you cannot press enter to add a new list item. You first have to write another letter before you can press enter.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new list
  2. Add a new list item and turn the last word into a link
  3. Try to hit enter
  4. Notice that nothing happens

Expected behavior
A new list item is created when pressing enter, no matter what the list looks like.

Screenshots

Here's where I tried to hit enter (after the @wpzurich link) — and yes, I was not inside the link.

screenshot 2018-11-07 at 23 21 51

Desktop:

Chrome 70 on macOS

Additional context
WordPress 5.0-beta3-43876

@swissspidy swissspidy added [Type] Bug An existing feature does not function as intended [Block] List Affects the List Block labels Nov 7, 2018
@designsimply
Copy link
Member

Tested and confirmed using WordPress 4.9.8 and Gutenberg 4.2.0 using Firefox 63.0.1 on macOS 10.13.6 and noting an error from the console that pops up as soon as I press enter with the caret placed outside the inline boundary for the link as the last thing in the last item of a bulleted list:

TypeError: t is undefined

screen shot 2018-11-07 at 5 27 15 pm
Seen at http://alittletestblog.com/wp-admin/post.php?post=15632&action=edit running WordPress 4.9.8 and Gutenberg 4.2.0 using Firefox 63.0.1 on macOS 10.13.6 .

@cameronjonesweb
Copy link
Contributor

This appears to be fixed in 4.4.0

@designsimply
Copy link
Member

Thanks @cameronjonesweb!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants