You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch fixes the touch-specific Select close-animation regression without reintroducing the quick-reopen openMethod race. It keeps the last interaction type alive through the close transition, adds a Chromium regression test for that path, and the rebased version keeps the new test on Vitest-native assertions.
Findings (None)
No blocking issues found in this patch.
Confidence: 4/5
High confidence based on a full-branch pass, a second sweep over render correctness, accessibility, API and state design, maintainability, performance risk, and coverage, plus fresh focused verification after reinstalling dependencies on the rebased branch. I reran pnpm test:jsdom SelectRoot --no-watch and pnpm test:chromium SelectRoot --no-watch, and both suites passed with the new touch-close regression coverage intact.
Notes
Latest delta since the previous review: after reinstalling dependencies on top of current master, the focused SelectRoot suites are passing again.
The new touch close-transition test now uses Vitest-native matchers only.
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
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 a Select regression where touch-triggered close animations could lose their exit styling during the close transition.
The change keeps the last non-null
openMethodavailable through the close phase so touch-opened Selects do not switch layout modes mid-exit.Changes
openMethodduring close usingusePreviousValue.openMethodonly after the popup fully unmounts.data-ending-style.Notes
alignItemWithTrigger={false}mode when explicitly setnullopenMethod bug fix from [all components] Reset openMethod on close transition #4128