Repository navigation
fix(fields): the people picker's list scrolls by wheel and touch inside a dialog - #36929
Merged
objectstack-fleet[bot] merged 3 commits intoNov 24, 2026
Merged
Conversation
…scrolls inside a dialog Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
…st scrolls in a max-height container Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head ac7171c · 2026-11-24T09:55ZL1-a read of #36929 (card #36852) at Mechanical. Read.
Nits (no action required):
ACCEPT. |
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB Landing: 2026-11-24T09:57Z · area ux-C · p2 · head
State: ready + auto-merge (merge queue). |
objectstack-fleet
Bot
deleted the
claude/issue-36852-peoplepicker-dialog-scroll
branch
November 24, 2026 10:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Yibo Wang · project thread
Fixes #36852
repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Confirmed cause, reproduced on main before any change (Chromium, 1280x800 with touch enabled, the inline PeoplePicker in a Radix
Dialog, 60 users, 25 loaded; readings below). It has two parts, and the second is one the card did not name:react-remove-scrollwith the dialog content as its only shard; the inline popover portals to the body, outside it, so everywheelandtouchmoveover the popover ispreventDefaulted (5 of 5 wheel, 9 of 9 touchmove). Outside a dialog none is.max-h-[min(28rem,60vh)]only, so it has no definite height; the list area (ScrollArea,min-h-0 flex-1) is clipped to the room left, but its Radix viewport ish-full, which against an indefinite height falls back to its content height. Measured: viewport 1248px tall,scrollHeight - clientHeight= 0, so the rows past the popover's edge were clipped, not scrollable, even outside a dialog. With onlymodaladded the list still does not move.The fix, in
ui/packages/fields/src/widgets/PeoplePicker.tsxonly:modal, its own scroll-lock layer, the treatment fix(fields): lookup quick-create stays whole and clickable in a short popover; its list scrolls in dialogs #36844 gave LookupField (consumption of an existing Radix prop; no change in@object-ui/components);flex min-h-0 flex-1 flex-col, so the viewport is a flex item that shrinks to the room the area is given and scrolls. This is the "another one" the card allows, named here.The list area is shared by the picker's three containers. The phone's bottom sheet (
h-[85vh], a definite height) measures the same before and after. The centred desktop dialog (max-h-[80vh]) had the same clipped, unscrollable list and now scrolls.What
modalbrings with it, already accepted for the lookup popover: while the popover is open the page behind it isaria-hidden, focus stays in the popover (Escape closes it), and the first click outside closes the popover before it reaches what it landed on.Tests
New top-level
describeinPeoplePicker.test.tsx(the component's shared harness file), with the picker inline inside a RadixDialog:aria-hiddenancestor and the popover does not (the observable half ofmodal);flex flex-col min-h-0 flex-1(jsdom does no layout, so this holds the structure; the geometry is the browser readings below);Ablations, one for each new pin, run through
scripts/ablation-replace.mjs(the anchor hit, the blob moved, and it was restored to HEAD withgit diff HEADempty), on-t "inside a dialog":modal: themodalpin fails, the other two pass (1 failed, 2 passed);flex ... flex-col: the list-area pin fails, the other two pass (1 failed, 2 passed).Local runs (head ac7171c)
@object-ui/fieldssuite (pnpm --dir ui exec vitest run packages/fields/): Test Files 328 passed, 1 skipped (329), Tests 4998 passed, 7 skipped (5005).pnpm --filter @object-ui/fields type-check: exit 0.tsconfig.test.jsonlistsPeoplePicker.test.tsx(--listFiles, 1 hit).dispatch-gates --commands: 37 of 38 run locally, all exit 0. Not measured:pnpm --dir ui exec vitest run scripts/, killed by SIGKILL on the shared box after 5 minutes. It reads none of this diff's files; CI runs it.Acceptance notes
Verification
Read first: the
ScrollAreaclass inPeoplePicker.tsx(what makes the list scroll at all), then themodalPopover (the behaviour change).Two minutes: open any create dialog that has a user field, with more users than fit, open the field's dropdown, and scroll it with the wheel: the list moves and the last users can be picked.
Browser readings (harness: Radix Dialog + inline PeoplePicker from source, Tailwind from the components sheet, 1280x800, touch on)
modalonlyThe wheel is capped at 600 by the five 120px ticks, not by the list. The prevented counts are read by a window listener after the document-level lock listener has run.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB