fix(combobox): don’t output undefined className

This commit is contained in:
Paul Chavard 2024-09-23 15:29:10 +02:00
parent fb07a0ca54
commit 3e9a51d9b8
No known key found for this signature in database

View file

@ -179,7 +179,7 @@ export function MultiComboBox(maybeProps: MultiComboBoxProps) {
const formResetRef = useOnFormReset(onReset); const formResetRef = useOnFormReset(onReset);
return ( return (
<div className={`fr-ds-combobox__multiple ${className}`}> <div className={`fr-ds-combobox__multiple ${className ? className : ''}`}>
{selectedItems.length > 0 ? ( {selectedItems.length > 0 ? (
<TagGroup onRemove={onRemove} aria-label={props['aria-label']}> <TagGroup onRemove={onRemove} aria-label={props['aria-label']}>
<TagList items={selectedItems} className="fr-tag-list"> <TagList items={selectedItems} className="fr-tag-list">