[iOS, Android, Web] Return on an empty list item adds another item instead of ending the list
Maintainers usually reply within 4 days
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 50/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- ios, react-native
- Domain
- mobile
Research direction
The bug is in the iOS side of EnrichedTextInput, where the return key is handled while the caret sits in an empty list item. Start by finding the return-key handling for lists and reproducing it with toggleUnorderedList() and an ordered list in the example app on the iOS simulator. Done means that pressing return on an empty bullet or numbered item removes the list marker and leaves normal text, while non-empty items still add a new item.
Written by the indexing model from the issue text.
Description
Describe the bug
In EnrichedTextInput, return on an empty bullet or numbered list item adds a new empty item below it. The user must tap the list button again, or press backspace to get back to normal text. Most editors on iOS end the list on return in an empty item, for example Apple Notes or Google Docs, which is why i think this will be perceived as a bug rather than a missing feature by the user.
To Reproduce
Steps to reproduce the behavior:
- Toggle an unordered list (toggleUnorderedList()) or an ordered list.
- Type something, press Return.
- The caret is now on the second (empty) item. Press return again.
Expected behavior
Return on an empty list item ends the list.
Screenshots
Screen cap: https://github.com/user-attachments/assets/3953a8c2-467d-42b0-a668-8e4c272fd0eb
Device:
- Device: iPhone simulator
- OS: iOS 27.0
- Version 1.1.1
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 77
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from software-mansion/react-native-enriched-html
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
software-mansion/react-native-enriched-html#862 ·
Maintainers usually reply within 4 days
-
Typing or autocorrecting inside a mention strips it to plain textPossibly taken @JaydeepAgravat claimed this 8 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 70/100
software-mansion/react-native-enriched-html#855 · 8 comments · 1 reaction ·
Maintainers usually reply within 4 days
-
[Feature request] Vertical spacing (margins) for headings and lists in htmlStylePossibly taken @henrikra claimed this 24 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 20/100
software-mansion/react-native-enriched-html#832 · 1 comment · 1 reaction ·
Maintainers usually reply within 4 days
-
[iOS] Tags not parsed on iOS below a certain string lengthPossibly taken @hejsztynx claimed this 33 days ago. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
software-mansion/react-native-enriched-html#811 · 3 comments ·
Maintainers usually reply within 4 days
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
software-mansion/react-native-enriched-html#803 ·
Maintainers usually reply within 4 days
All issues in software-mansion/react-native-enriched-html
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libretro/parallel-n64#858 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Mbed-TLS/TF-PSA-Crypto#984 ·
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100