Caret hidden behind the editor toolbar on iOS when editable root is enabled
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- ios, javascript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 29
- フォーク
- 6
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wordpress-mobile/GutenbergKit のほかの issue
-
[Type] Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
wordpress-mobile/GutenbergKit#940 ·
メンテナーはふだん 1 日以内に返信
-
[Type] Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
wordpress-mobile/GutenbergKit#884 ·
メンテナーはふだん 1 日以内に返信
-
[Type] Bug Android
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
wordpress-mobile/GutenbergKit#847 ·
メンテナーはふだん 1 日以内に返信
-
[Type] Bug iOS
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
wordpress-mobile/GutenbergKit#846 ·
メンテナーはふだん 1 日以内に返信
-
[Type] Bug [Type] Code Quality iOS
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
wordpress-mobile/GutenbergKit#668 ·
メンテナーはふだん 1 日以内に返信
wordpress-mobile/GutenbergKit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 13 日以内に返信
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner scheme対応中かも @Bensonbenyi が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Mintplex-Labs/anything-llm#7338 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
bug: no-derived-state crashes on a call through a TypeScript import-equals alias (`import x = A.b`)オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
nickjvandyke/eslint-plugin-react-you-might-not-need-an-effect#90 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
semantic-release/semantic-release#4375 ·
メンテナーはふだん 1 日以内に返信