diff --git a/CHANGELOG.md b/CHANGELOG.md index 922b323617ec..d533a40da0ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -864,7 +864,6 @@ No changes since `@mui/x-tree-view@7.12.0`. - [docs] Add a warning to promote the usage of `updateRows()` (#14027) @MBilalShafi - [docs] Disable ad in `Rich Tree View-Ordering` page (#14123) @oliviertassinari - [docs] Redesign Date and Time Pickers overview page (#13241) @noraleonte - - [CHANGELOG] Polish details @oliviertassinari - [code-infra] Use concurrency 1 in CircleCI (#14110) @JCQuintas - [infra] Re-added the removal of `Latest Version` section (#14132) @michelengelen diff --git a/changelogOld/CHANGELOG.v4.md b/changelogOld/CHANGELOG.v4.md index 6f64b9b6a0a2..b100730eeef2 100644 --- a/changelogOld/CHANGELOG.v4.md +++ b/changelogOld/CHANGELOG.v4.md @@ -378,8 +378,8 @@ Big thanks to the 11 contributors who made this release possible. Here are some - [DataGrid] Improve the editing API (#1955) @m4theushw - - The `props` key in the first argument of `commitCellChange` was removed to promote the use of the value already stored in the state. - To update the value in the state, call `setEditCellProps` before. + - The `props` key in the first argument of `commitCellChange()` was removed to promote the use of the value already stored in the state. + To update the value in the state, call `setEditCellProps()` before. ```diff -apiRef.current.commitCellChange({ id: 1, field: 'name', props: { value: 'Ana' } }); @@ -387,7 +387,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some +apiRef.current.commitCellChange({ id: 1, field: 'name' }); ``` - - Calling `commitCellChange` in a cell in view mode will throw an error. Make sure to first enter the edit mode. + - Calling `commitCellChange()` in a cell in view mode throws an error. Make sure to first enter the edit mode. ```diff +apiRef.current.setCellMode(1, 'name', 'edit'); diff --git a/docs/data/migration/migration-data-grid-v5/migration-data-grid-v5.md b/docs/data/migration/migration-data-grid-v5/migration-data-grid-v5.md index 1b99ebd066a3..b3a97f317123 100644 --- a/docs/data/migration/migration-data-grid-v5/migration-data-grid-v5.md +++ b/docs/data/migration/migration-data-grid-v5/migration-data-grid-v5.md @@ -297,7 +297,7 @@ Most of this breaking change is handled by `preset-safe` codemod but some furthe + const focusedField = props.focusedCell; + const tabIndex = props.tabbableCell === column.field ? 0 : 1; ``` -- Updating the [`rows` prop](/x/react-data-grid/row-updates/#the-rows-prop) or calling `apiRef.current.setRows` will now remove the expansion state of the grid as these methods are meant to replace the rows. +- Updating the [`rows` prop](/x/react-data-grid/row-updates/#the-rows-prop) or calling `apiRef.current.setRows()` will now remove the expansion state of the grid as these methods are meant to replace the rows. For partial row updates, use the [`apiRef.current.updateRows()`](/x/react-data-grid/row-updates/#the-updaterows-method) method instead. ### Pagination