Skip to content

fix(android): clear focus on dismiss to prevent auto-focus transfer#649

Merged
lodev09 merged 3 commits intomainfrom
fix/android-focus-transfer-on-dismiss
Apr 13, 2026
Merged

fix(android): clear focus on dismiss to prevent auto-focus transfer#649
lodev09 merged 3 commits intomainfrom
fix/android-focus-transfer-on-dismiss

Conversation

@lodev09
Copy link
Copy Markdown
Owner

@lodev09 lodev09 commented Apr 13, 2026

Summary

  • Clear focus from the sheet's focused view during keyboard dismissal to prevent Android from auto-focusing the next focusable view on the main screen when the sheet is removed from the hierarchy.

Closes #647

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Test Plan

  • Open a sheet with a TextInput
  • Focus the TextInput (keyboard appears)
  • Dismiss the sheet
  • Verify the TextInput on the main screen does NOT receive focus

Checklist

  • I tested on iOS
  • I tested on Android
  • I tested on Web
  • I updated the documentation (if needed)
  • I added a changelog entry (if needed)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-true-sheet Ready Ready Preview, Comment Apr 13, 2026 7:45pm

Request Review

@lodev09 lodev09 merged commit d0a45c2 into main Apr 13, 2026
6 checks passed
@lodev09 lodev09 deleted the fix/android-focus-transfer-on-dismiss branch April 13, 2026 19:45
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.

After dismissing a TrueSheet with a focused input, the TextInput on the main screen automatically receives focus [Android]

1 participant