Skip to content

Bullet list toggle bug – numbered and unordered lists overlap #369

@margolisdavid

Description

@margolisdavid

Environment:

  • Proton version: 0.8.35 (commit 30c0f87)
  • Platform: iOS
  • SwiftUI integration using EditorView + ListCommand
  • Custom EditorListFormattingProvider for bullets/numbers

Steps to Reproduce

  1. Start a bullet list. Hit return to create next item on list.
  2. The next bullet is auto continued on the next line.
  3. Tap to switch to an alternative bullet, ie numbered bullets.
  4. The bullet from step 2 vanishes. There is now no bullet at all.
  5. User taps the bullet button again to try and get their bullet.
  6. Now the original bullet returns with the numbered bullet at the same time. ie they are literally on top of each other!

Expected Behaviour

  • Toggling from a numbered list to a bullet list should replace the marker cleanly (one style active at a time).

Actual Behaviour

  • Switching list type can leave both attributes active in the same paragraph, producing overlapping markers.

Additional Notes

  • I’ve verified the issue persists even after explicitly removing all known list-related attributes (com.rajdeep.proton.list, NSListItem, ProtonListKind, etc.) before applying the new list type.
  • Delaying cleanup with DispatchQueue.main.asyncAfter doesn’t solve it.
  • Appears related to internal async normalisation pass in ListTextProcessor that re-applies previous attributes.

Would love any guidance on whether this is known or in-progress — happy to help test potential fixes.

Thanks for all the brilliant work on Proton

Dave

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions