Caret hidden behind the editor toolbar on iOS when editable root is enabled
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- ios, javascript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- JavaScript
- Estrellas
- 29
- Forks
- 6
- Merge medio
- 2 d 1 h
- PR fusionados (30 d)
- 76
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wordpress-mobile/GutenbergKit
-
[Type] Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
wordpress-mobile/GutenbergKit#940 ·
Los mantenedores suelen responder en 1 día
-
[Type] Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
wordpress-mobile/GutenbergKit#884 ·
Los mantenedores suelen responder en 1 día
-
[Type] Bug Android
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
wordpress-mobile/GutenbergKit#847 ·
Los mantenedores suelen responder en 1 día
-
[Type] Bug iOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
wordpress-mobile/GutenbergKit#846 ·
Los mantenedores suelen responder en 1 día
-
[Type] Bug [Type] Code Quality iOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
wordpress-mobile/GutenbergKit#668 ·
Los mantenedores suelen responder en 1 día
Todos los issues de wordpress-mobile/GutenbergKit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 13 días
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner schemePosiblemente ocupada @Bensonbenyi la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Mintplex-Labs/anything-llm#7338 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
bug: no-derived-state crashes on a call through a TypeScript import-equals alias (`import x = A.b`)Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
nickjvandyke/eslint-plugin-react-you-might-not-need-an-effect#90 · 1 comentario · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
semantic-release/semantic-release#4375 ·
Los mantenedores suelen responder en 1 día