Skip to content

fix(mobile): expanded iOS environment card fields can take focus - #14

Draft
macodev00 wants to merge 1 commit into
mainfrom
cursor/ios-env-card-taps-f431
Draft

macodev00 wants to merge 1 commit into
mainfrom
cursor/ios-env-card-taps-f431

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

On iOS, an expanded environment card in Settings → Environments ignored every tap: Label/URL never took focus, and Save/refresh/trash did nothing.

The expanded editor was wrapped in a Reanimated FadeIn/FadeOut view. That wrapper sits under a parent LinearTransition and an overflow-hidden list, and on iOS it paints while stealing hits so children never become first responder.

The editor now mounts in a plain View with collapsable={false}. Expand/collapse still uses LinearTransition on the row. This does not change the pingdotgg#12012 confirm-alert path.

Fixes pingdotgg#12085.

Why

Add Environment on the same nested stack uses the same inputs without entering/exiting and those fields still focus. The header Pressable still worked, so the sheet itself was not dead — only the animated expanded block.

UI Changes

No visual redesign. Expand no longer fades the editor in; the editor appears with the row height animation.

Could not capture iOS before/after here: this VM has no iOS simulator/device. Verify on an iPhone: Settings → Environments → expand a saved environment → Label focuses and types; Save/refresh/trash receive presses.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes (blocked: no iOS device in this environment)
  • I included a video for animation/interaction changes
Open in Web Open in Cursor 

Reanimated FadeIn/FadeOut on the expanded editor stole hits inside the nested Settings form sheet, so Label/URL never became first responder and Save/refresh/trash did nothing. Mount the editor in a plain View.

This branch has not been deployed

No deployments
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.

[Bug]: iOS: an expanded environment card ignores every tap, its fields never take focus

1 participant