Skip to content

investigate: isolated @mui/material 9.0.1 bump (do not merge)#503

Merged
frewsxcv merged 2 commits into
mainfrom
investigate/mui-9.0.1
May 19, 2026
Merged

investigate: isolated @mui/material 9.0.1 bump (do not merge)#503
frewsxcv merged 2 commits into
mainfrom
investigate/mui-9.0.1

Conversation

@frewsxcv

Copy link
Copy Markdown
Collaborator

Purpose

Isolate the suspected breakage from PR #477's larger dep bundle. Only change is @mui/material and @mui/icons-material pinned to 9.0.1. If CI fails the same observation-edit "edit modal pre-populates species" test here, it's conclusively MUI 9.0.1 (and not React 19.2.6 / Playwright 1.60 / others).

Hypothesis

9.0.1 ships mui/material-ui#48263 — a resetInputValue change for freeSolo + value === null. Our TaxaAutocomplete is freeSolo with uncontrolled value, which is the affected shape.

Do not merge

This is investigation-only. Once we have a verdict, close it and decide whether to (a) patch TaxaAutocompleteView to also control value, or (b) keep MUI pinned to 9.0.0 in #477.

@frewsxcv frewsxcv marked this pull request as ready for review May 19, 2026 02:11
Isolates the suspected breakage from the larger PR #477 dep bundle.
9.0.1 ships mui/material-ui#48263 (resetInputValue change for
freeSolo+null value); the goal here is to reproduce the
observation-edit "pre-populates species" test failure and try fixes.
@frewsxcv frewsxcv force-pushed the investigate/mui-9.0.1 branch from 8a949a3 to 42086b1 Compare May 19, 2026 02:15
@mui/material 9.0.1 (mui/material-ui#48263) made `useAutocomplete`'s
`resetInputValue` clear a non-empty `inputValue` when `value` is
null and `freeSolo` is set. Our `inputValue` was controlled but
`value` was not, so an async `setSpecies("Quercus alba")` in
UploadModal's edit-mode useEffect was wiped before the user saw it.

Controlling `value` alongside `inputValue` flips
`isOptionSelected` to true, so the reset path short-circuits.
@frewsxcv frewsxcv added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit d1cd1ce May 19, 2026
20 checks passed
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