Skip to content

fix(android): forward requestDisallowInterceptTouchEvent in footer view - #766

Merged
lodev09 merged 2 commits into
mainfrom
fix/android-footer-disallow-intercept
Aug 9, 2026
Merged

fix(android): forward requestDisallowInterceptTouchEvent in footer view#766
lodev09 merged 2 commits into
mainfrom
fix/android-footer-disallow-intercept

Conversation

@lodev09

@lodev09 lodev09 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #765 (issue #764).

TrueSheetFooterView is the remaining RootView implementation with ViewGroup's default requestDisallowInterceptTouchEvent (ReactViewGroup doesn't override it). An EditText in the footer would set the footer's own disallow flag on touch, blinding its jsTouchDispatcher to the gesture's UP — leaving a stale JS responder that swallows the next tap on a sibling Pressable in the footer. Same class of bug as the controller fix in #765.

Fix mirrors ReactSurfaceView (and the controller): don't set the view's own disallow flag, forward the request up the tree — so TrueSheetCoordinatorLayout still receives it and its drag arbitration is unchanged.

Type of Change

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

Test Plan

Same repro shape as #764 scoped to the footer: a sheet footer containing a TextInput and a sibling Pressable counting onPressIn/onPress — tap the input, dismiss the keyboard with the BACK key, tap the button once. With the fix the first tap fires; footer buttons and sheet drag/dismiss behave normally.

Screenshots / Videos

N/A

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)

TrueSheetFooterView is the remaining RootView impl with the ViewGroup
default: an EditText in the footer would set the footer's own disallow
flag, blinding its jsTouchDispatcher to the gesture end and leaving a
stale JS responder that swallows the next tap — same class of bug as
the controller fix in #765. Mirror ReactSurfaceView: forward the
request up without setting our own flag.

Follow-up to #765
@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
react-native-true-sheet Ready Ready Preview Aug 9, 2026 7:18am

Request Review

@lodev09
lodev09 force-pushed the fix/android-footer-disallow-intercept branch from becd7af to b9a0933 Compare August 9, 2026 07:17
@lodev09
lodev09 merged commit b90a209 into main Aug 9, 2026
6 checks passed
@lodev09
lodev09 deleted the fix/android-footer-disallow-intercept branch August 9, 2026 07:19
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