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

Adjacent lists require separate containers #4090

Closed
pshatara90 opened this issue Mar 26, 2024 · 1 comment
Closed

Adjacent lists require separate containers #4090

pshatara90 opened this issue Mar 26, 2024 · 1 comment

Comments

@pshatara90
Copy link

pshatara90 commented Mar 26, 2024

If you create 2 lists - one unordered, the followed by an ordered list - without a line break in between them, Quill is putting each <li> under the same <ol> creating a weird rendering condition. See screenshot.

Steps for Reproduction

  1. Create an unordered list and add some content
  2. Add a linebreak (see second list item)
  3. click backspace to remove list formatting
  4. Create an ordered list
  5. See that first ordered list item has value 2 (with css applied to data-list="ordered" element) and that element is wrapped by the same <ol> as the unordered list.

Expected behavior:
Lists should be held by separate <ol> containers

Actual behavior:
Lists rendered in same <ol>
Screenshot 2024-03-26 at 11 15 04 AM

Platforms:
Chrome

Version:
2.0.0-rc.3

@luin
Copy link
Member

luin commented Mar 27, 2024

Duplication of #979

@luin luin closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants