Skip to content

Commit

Permalink
Add entry to v6 migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Jul 4, 2024
1 parent c1e2bb1 commit b5b2ba8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/data/material/migration/migration-v5/migration-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ This results in a reduction of the `@mui/material` package size by 2.5MB or 25%
Instead, using ESM-based CDNs such as [esm.sh](https://esm.sh/) is recommended.
For alternative installation methods, refer to the [CDN documentation](/material-ui/getting-started/installation/#cdn).

### Autocomplete

#### New reason values added to onInputChange

Three new possible values have been added to the `reason` argument in the `onInputChange` callback of the Autocomplete component:

- `"blur"`: like `"reset"` but triggered when the focus is moved off the input. `clearOnBlur` must be `true`. Before, it was treated as `"reset"`.
- `"selectOption"`: triggered when the input value changes after an option has been selected. Before, it was treated as `"reset"`.
- `"removeOption"`: triggered in multiple selection when a chip gets removed due to the corresponding option being selected. Before, it was treated as `"reset"`.

These are added on top of the existing ones: `"input"`, `"reset"`, or `"clear"`.

### Chip

The Chip component's behavior has been updated to match the standard behavior of other components like buttons.
Expand Down

0 comments on commit b5b2ba8

Please sign in to comment.