Skip to content

Commit

Permalink
Remove default value for chat header slot (#16321)
Browse files Browse the repository at this point in the history
* Remove default value for chat header slot

* update changelog

* Always render header slot

Co-authored-by: Lingfan Gao <[email protected]>
  • Loading branch information
ling1726 and ling1726 authored Jan 4, 2021
1 parent be53c0f commit 5902550
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 @@ -72,6 +72,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Fix Menu styles for `Toolbar` @TanelVari ([#16141](https://github.com/microsoft/fluentui/pull/16141))
- Fix the type for `onBlur`callback in the `Dropdown` component @ling1726 ([#16257](https://github.com/microsoft/fluentui/pull/16257))
- Fix missing export for `AttachmentBodyStylesProps` @ling1726 ([#16260](https://github.com/microsoft/fluentui/pull/16260))
- Fix throwing error when using `ChatMessage` with children without declaring the `header` prop @ling1726 ([#16321](https://github.com/microsoft/fluentui/pull/16321))

### Features
- Add 2.0 light and dark themes @jurokapsiar ([#15867](https://github.com/microsoft/fluentui/pull/15867))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export const ChatMessage: ComponentWithAs<'div', ChatMessageProps> &

const readStatusElement = createShorthand(ChatMessageReadStatus, readStatus, {});

const headerElement = createShorthand(ChatMessageHeader, header, {
const headerElement = createShorthand(ChatMessageHeader, header || {}, {
overrideProps: () => ({
content: (
<>
Expand Down Expand Up @@ -395,7 +395,6 @@ ChatMessage.displayName = 'ChatMessage';
ChatMessage.defaultProps = {
accessibility: chatMessageBehavior,
badgePosition: 'end',
header: {},
positionActionMenu: true,
reactionGroupPosition: 'start',
};
Expand Down

0 comments on commit 5902550

Please sign in to comment.