Skip to content

Commit e9706f7

Browse files
krystofmatejkaKryštof Matějkakhmakoto
authored
fix(TagItemSuggestion v8): pass rest of the props to the underlying component (#32839)
Co-authored-by: Kryštof Matějka <kmatejka@microsoft.com> Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
1 parent 620ea3f commit e9706f7

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: Passing rest of ITagItemSuggestionProps to the underlying component.",
4+
"packageName": "@fluentui/react",
5+
"email": "kmatejka@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/react/src/components/pickers/TagPicker/TagItemSuggestion.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ const getClassNames = classNamesFunction<ITagItemSuggestionStyleProps, ITagItemS
1414
* {@docCategory TagPicker}
1515
*/
1616
export const TagItemSuggestionBase = (props: ITagItemSuggestionProps) => {
17-
const { styles, theme, children } = props;
17+
const { styles, theme, children, ...rest } = props;
1818

1919
const classNames = getClassNames(styles, {
2020
theme: theme!,
2121
});
2222

23-
return <div className={classNames.suggestionTextOverflow}> {children} </div>;
23+
return (
24+
<div className={classNames.suggestionTextOverflow} {...rest}>
25+
{' '}
26+
{children}{' '}
27+
</div>
28+
);
2429
};
2530

2631
export const TagItemSuggestion = styled<

0 commit comments

Comments
 (0)