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

List Block: indenting in reverse order messes up numbering #17052

Closed
ellatrix opened this issue Aug 15, 2019 · 2 comments · Fixed by #42711
Closed

List Block: indenting in reverse order messes up numbering #17052

ellatrix opened this issue Aug 15, 2019 · 2 comments · Fixed by #42711
Assignees
Labels
[Block] List Affects the List Block [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended

Comments

@ellatrix
Copy link
Member

Describe the bug

Screenshot 2019-08-15 at 13 37 59

To reproduce

  • Convert the list in the demo content to a numbered list.
  • Indent one of the middle items.
  • Indent the item above.
  • Both items now have the number 1...

Expected behavior
The second item should have the number 2.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

  • Please add the version of Gutenberg you are using in the description.
  • To report a security issue, please visit the WordPress HackerOne program: https://hackerone.com/wordpress.
@ellatrix ellatrix added the [Block] List Affects the List Block label Aug 15, 2019
@ellatrix ellatrix self-assigned this Aug 21, 2019
@draganescu draganescu added the [Type] Bug An existing feature does not function as intended label Apr 23, 2020
@draganescu
Copy link
Contributor

I've hit this bug as well. Easily solved by converting to unordered and then back to ordered.

@draganescu
Copy link
Contributor

My solution does not work because now we also have #32405 wich will cause content to be lost when switching list types.

@ellatrix ellatrix added the [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable label Jul 11, 2021
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 [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants