Skip to content

[Bug]: Mobile PR list scrolls the filter pills under the header when you change a filter #29032

Closed

Description

@NotAnNvidiaFan

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. On iOS, open the PRs tab with an environment whose repositories have more open pull requests than fit on screen.
  2. With the list at the top, open the Filter by involvement pill and choose By you.
  3. Open it again and choose All PRs. The list it switches to must already be loaded, so switch to it once beforehand if needed.

The same happens with every filter pill: switching Filter by state (for example Closed → Open) or Filter by author (Me → All authors) to a list that is already loaded and longer than the screen.

Expected behavior

The list stays at its top, with the filter pills visible just below the header.

Actual behavior

The list jumps up by the height of the header (116pt on an iPhone 18 Pro). The filter pills and the first pull request end up hidden under the header, and you have to scroll up by hand to change the filter again.

Before, on main: By you → All PRs jumps, and Closed → Open jumps.

before.mp4

Before: filter row hidden under the header after choosing All PRs

It reproduced on every switch to an already-loaded long list. A list that is still loading, or one shorter than the screen, ends up in the right place, because iOS pulls a short list back to its top.

Impact

Minor bug or occasional failure

Version or commit

main @ 4a5251b

Environment

iOS simulator, iPhone 18 Pro, iOS 27.2, development client built from main. Also seen on a physical iPhone running the T3 Code beta.

Logs or stack traces

# Every filter change asks the list to scroll to its top (-116 here).
# React Native's iOS scrollTo clamps that to 0 because it ignores the header inset UIKit adds.
filter change -> scrollToOffset(-116) insets.top=116
scroll y=0.0

Workaround

Scroll back up by hand after changing a filter.


The same regression from #24284 was fixed on the PR detail tabs in #26064 and on Home in #27155. #27155 notes that PullRequestsScreen scrolls back to the top the same way but left it out.

Activity

  1. juliusmarminge commented on Nov 9, 2026

    @juliusmarminge
    Member

    Thanks for the detailed reproduction. #28125, merged as 4df0c1302a, supplies the header as a native content inset, allowing the filter reset to reach the top without being clamped under the header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions