Phenomenon
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.
Reproduction example
- Open a contenteditable region on iOS Safari.
- Tap on the contenteditable area.
- Observe whether the element receives focus and the keyboard appears.
- Try long-pressing to select text.
Observed behavior
- In iOS Safari, tapping may not focus the contenteditable.
- The virtual keyboard may not appear.
- Long-press for text selection may trigger browser context menu instead.
- Focus may be lost when interacting with other page elements.
Expected behavior
- Tapping should focus the contenteditable and show the virtual keyboard.
- Long-press should allow text selection.
- Focus should be maintained during normal editing operations.