ProtonMail / WebClients

Monorepo hosting the proton web clients
GNU General Public License v3.0
4.47k stars 566 forks source link

Nested ordered list resumes child's numbering #186

Closed ghost closed 4 years ago

ghost commented 4 years ago

Describe the bug After nesting an ordered list and returning to the first level, the index resumes the child's numbering. This also happens when you nest a list inside another nested list.

To Reproduce

  1. Compose a new email, reply to an existing one or edit a draft.
  2. Select Ordered List
  3. Write something at index 1.
  4. Nest a list inside it (insert a new line and tabulate)
  5. Add a few lines
  6. Go back to the first level (shift+tab)

When nesting lists inside nested lists, the same thing happens.

Expected behaviour You would expect something like this:

  1. Section A

    1. Subsection A
    2. Subsection B
  2. Section B

  3. Section A

    1. Subsection A
    2. Subsection B
      1. Subsubsection A
      2. Subsubsection B
      3. Subsubsection C
    3. Subsection C
  4. Section B

Screenshots image (this is on mail.protonmail.ch) image (this is on beta.protonmail.ch)

Desktop (please complete the following information):

ghost commented 4 years ago

Closing as this is a Firefox specific issue.