Fix/dropdown option placement on touch#235
Merged
keysersoft merged 6 commits intoMay 21, 2026
Merged
Conversation
…s across the application
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.
Summary
Fixes dropdown options appearing in wrong screen position when using Chrome DevTools mobile/touch simulation. The root cause was
appearance: noneCSS on native<select>elements, which caused Chrome to switch to a JS-rendered dropdown that miscalculates position under touch simulation. Replaced all native selects with@radix-ui/react-select, which renders via a portal atdocument.bodyand calculates position independently of any CSS transforms or overflow context.Changes
components/ui/select.tsx— reusableAppSelectwrapper around Radix UI Select with empty-string sentinel ('' ↔ '__NONE__') to preserve existing state patterns<select>elements across 10 pages/components withAppSelectmain select/.dark main selectCSS block fromglobals.css(theappearance: noneworkaround that caused the bug)Type
Testing
Open each affected page in Chrome DevTools with a mobile device simulated (touch enabled). Click every dropdown — options now appear directly below the trigger in all cases. Verified on desktop and dark mode as well.
Checklist
npm test)Related Issues