Skip to content

Commit

Permalink
fix(Toolbar): remove items from defaultProps (#28723)
Browse files Browse the repository at this point in the history
* fix(Toolbar): remove `items` from `defaultProps`

* add changelog
  • Loading branch information
layershifter committed Aug 8, 2023
1 parent 405adc0 commit 90b6ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/fluentui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Do not use `defaultProps` in `EventListener` to avoid deprecation warnings. @layershifter ([#28725](https://github.com/microsoft/fluentui/pull/28725))
- `Datepicker`: add onCalendarOpenStateChange prop. @jurokapsiar ([#28136](https://github.com/microsoft/fluentui/pull/28136))
- Outline color now respects OS force colors settings. @george-cz ([#28182](https://github.com/microsoft/fluentui/pull/28182))
- Remove `items` from `defaultProps` in Toolbar to fix warnings @layershifter ([#28723](https://github.com/microsoft/fluentui/pull/28723))

<!--------------------------------[ v0.66.4 ]------------------------------- -->
## [v0.66.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-northstar_v0.66.4) (2023-03-10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const Toolbar = compose<'div', ToolbarProps, ToolbarStylesProps, {}, {}>(
children,
design,
getOverflowItems,
items,
items = [],
overflow,
overflowItem,
overflowOpen,
Expand Down Expand Up @@ -663,7 +663,6 @@ Toolbar.propTypes = {
};
Toolbar.defaultProps = {
accessibility: toolbarBehavior,
items: [],
overflowItem: {},
overflowSentinel: {},
};
Expand Down

0 comments on commit 90b6ff3

Please sign in to comment.