Caret hidden behind the editor toolbar on iOS when editable root is enabled
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ios, javascript
Hướng nghiên cứu
Start with the editableRoot handling and the FIXME in EditorViewController.swift, then reproduce the caret overlap in the iOS demo using the steps in the issue. The issue describes two possible approaches, but leaves the choice open and spans native WebView behavior and web-side scrolling. Done means the caret stays above the toolbar when the keyboard covers the tapped paragraph.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
This is a latent bug: it doesn't affect users today, because #821 patches the editableRoot opt-in out of the Paragraph, Heading and List Item blocks. It blocks removing that patch.
With the opt-in enabled, tapping a block that the keyboard will cover scrolls the caret to just above the web view's bottom edge, behind GBK's bottom toolbar. I expect the caret to land above the toolbar, as it does with the opt-in patched out.
WebKit's reveal logic (-[WKWebView _zoomToFocusRect:…]) places the caret 8pt above the visible edge when the focused element is taller than the visible area. With editable root, the focused element is the whole writing-flow wrapper. GBK's web view ends at the keyboard, and its toolbar is a fixed web element, so WebKit can't see it. scroll-padding-bottom doesn't affect this native reveal.
Setting obscuredContentInsets.bottom (iOS 26+) moves the caret above the toolbar. But it also shrinks the layout viewport, so the fixed toolbar moves up with it and doesn't paint inside the inset.
Possible fixes: a native toolbar outside the web view (see the FIXME in EditorViewController.swift), or scrolling the caret clear of the toolbar from the web side.
Step-by-step reproduction instructions
- Revert the
editableRootKeyremoval inpatches/@wordpress+block-library+12.1.0.patchand runmake build. - In the iOS demo app, open the standalone editor and add eight two-line paragraphs.
- Swipe down to hide the keyboard.
- Tap a paragraph in the lower third of the screen.
- The tapped line and caret sit behind the toolbar above the keyboard.
Screenshots, screen recording, code snippet
No response
Environment info
GutenbergKit trunk (0.20.0), iPhone 18 Pro simulator on iOS 27.2.
Please confirm that you have searched existing issues in the repo.
- Yes
- Ngôn ngữ chính
- JavaScript
- Star
- 29
- Fork
- 6
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wordpress-mobile/GutenbergKit
-
[Type] Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
wordpress-mobile/GutenbergKit#940 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Type] Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
wordpress-mobile/GutenbergKit#884 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Type] Bug Android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
wordpress-mobile/GutenbergKit#847 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Type] Bug iOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
wordpress-mobile/GutenbergKit#846 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Type] Bug [Type] Code Quality iOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
wordpress-mobile/GutenbergKit#668 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wordpress-mobile/GutenbergKit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 13 ngày
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner schemeCó thể đã có người làm @Bensonbenyi đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Mintplex-Labs/anything-llm#7338 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: no-derived-state crashes on a call through a TypeScript import-equals alias (`import x = A.b`)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
nickjvandyke/eslint-plugin-react-you-might-not-need-an-effect#90 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
semantic-release/semantic-release#4375 ·
Maintainer thường phản hồi trong vòng 1 ngày