Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[iOS] Return on an empty list item adds another item instead of ending the list

Đang mở
#810 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 5 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, react-native
Lĩnh vực
mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

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:

  1. Toggle an unordered list (toggleUnorderedList()) or an ordered list.
  2. Type something, press Return.
  3. 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
Ngôn ngữ chính
C
Star
1.4k
Fork
69
Merge trung bình
8 ngày 13 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của software-mansion/react-native-enriched-html

Tất cả issue của software-mansion/react-native-enriched-html

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.