Skip to content

Conversation

@kylecarbs
Copy link
Member

Fixes the iOS keyboard not appearing when tapping input fields in the installed PWA.

Problem

In PWA mode on iOS Safari, the keyboard wasn't appearing when tapping input/textarea elements, even though it worked fine in the browser.

Solution

The issue was touch-action: manipulation applied globally to the html element, which interferes with iOS native input behavior.

Changes:

  • Moved touch-action: manipulation from html to buttons/interactive elements only
  • Added explicit touch-action: auto for input/textarea/select elements
  • Enhanced viewport meta with interactive-widget=resizes-content for better keyboard handling

Testing

Test on iOS Safari by:

  1. Installing the PWA to home screen
  2. Opening from home screen
  3. Tapping any input field
  4. Verify keyboard appears

Generated with cmux

The iOS keyboard wasn't appearing when tapping input fields in the installed
PWA due to touch-action: manipulation applied globally to the html element.

Changes:
- Moved touch-action: manipulation from html element to buttons/interactive elements only
- Added touch-action: auto for input/textarea/select to ensure iOS keyboard appears
- Added interactive-widget=resizes-content to viewport meta for better keyboard handling

This follows iOS best practices where touch-action should be scoped to
specific interactive elements rather than applied globally, which can
interfere with native input behavior in PWA/home screen mode.
@kylecarbs kylecarbs merged commit 71701b2 into main Oct 21, 2025
14 of 15 checks passed
@kylecarbs kylecarbs deleted the pwa-input branch October 21, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant