Touch events interfere with contenteditable focus on mobile
OS: iOS Ubuntu 22.04 · Device: Mobile Any · Browser: Safari 120.0 · Keyboard: System virtual keyboard
Open case →Scenario
On iOS Safari, touch events (tap, long-press) on a contenteditable region may not properly focus the element. The virtual keyboard may not appear, or focus may be lost unexpectedly.
On iOS Safari, touch events (tap, long-press) on a contenteditable region may not properly focus the element. The virtual keyboard may not appear, or focus may be lost unexpectedly.
This scenario has been observed in multiple environments with similar behavior.
Visual view of how this scenario connects to its concrete cases and environments. Nodes can be dragged and clicked.
Each row is a concrete case for this scenario, with a dedicated document and playground.
| Case | OS | Device | Browser | Keyboard | Status |
|---|---|---|---|---|---|
| ce-0028-mobile-touch-focus | iOS Ubuntu 22.04 | Mobile Any | Safari 120.0 | System virtual keyboard | draft |
| ce-0038-mobile-zoom-on-focus | iOS Ubuntu 22.04 | Mobile Any | Safari 120.0 | System virtual keyboard | draft |
| ce-0046-mobile-double-tap-zoom | iOS Ubuntu 22.04 | Mobile Any | Safari 120.0 | System virtual keyboard | draft |
| ce-0053-mobile-selection-handles-overlap | Android Ubuntu 22.04 | Mobile Any | Chrome 120.0 | System virtual keyboard | draft |
This matrix shows which browser and OS combinations have documented cases for this scenario. Click on a cell to view the specific case.
| Browser | Android | iOS |
|---|---|---|
| Chrome | — | |
| Safari | — | ce-0028-mobile-touch-focus ce-0038-mobile-zoom-on-focus ce-0046-mobile-double-tap-zoom 120.0, 120.0, 120.0 |
Open a case to see the detailed description and its dedicated playground.
OS: iOS Ubuntu 22.04 · Device: Mobile Any · Browser: Safari 120.0 · Keyboard: System virtual keyboard
Open case →OS: iOS Ubuntu 22.04 · Device: Mobile Any · Browser: Safari 120.0 · Keyboard: System virtual keyboard
Open case →OS: iOS Ubuntu 22.04 · Device: Mobile Any · Browser: Safari 120.0 · Keyboard: System virtual keyboard
Open case →OS: Android Ubuntu 22.04 · Device: Mobile Any · Browser: Chrome 120.0 · Keyboard: System virtual keyboard
Open case →Other scenarios that share similar tags or category.
On iOS, contenteditable elements may become non-selectable or non-editable. Tapping on the element doesn't display the caret, preventing text input.
On mobile devices, selecting text in a contenteditable region using touch is difficult. The selection handles are small and hard to grab, and the selection range may change unexpectedly when trying to adjust it.
In Chrome on Android, input events may fire when a contenteditable element gains or loses focus, even without content changes. This behavior can lead to unintended side effects in applications relying on input events for content modification detection.
When a contenteditable element has CSS backdrop-filter applied, rendering may be affected. Text may appear blurry, selection may not render correctly, and performance may be degraded, especially on mobile devices.
On mobile devices, the combination of enterkeyhint and inputmode attributes may affect Enter key behavior inconsistently on contenteditable elements. The Enter key may insert line breaks when it should perform an action, or vice versa.
Have questions, suggestions, or want to share your experience? Join the discussion below.