OpenSlides / OpenSlides/openslides-client

Fix empty list items in editor

Open
#5,746 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
35
Forks
52
Avg merge
1d 9h
Merged PRs (30d)
52

Description

Describe the bug
If a list (in any editor) with an empty item is saved, it can't be edited later on.

How to Reproduce

  1. create a topic (or motion/edit start page/...) with the following text:
<p>Some text</p>
<ul>
	<li>First point</li>
	<li>
	</li>
</ul>
<p>Some more text</p>
  1. save the topic
  2. edit the topic and try to write something in the empty list item. -> The cursor immediately jumps to the next line.

Expected behavior
It is possible to enter text to an empty list item.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in any editor using the HTML list shown in the report, then trace how the saved empty list item is handled when editing. Done means text can be entered in the empty list item without the cursor jumping to the next line.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.