Skip to content

Commit

Permalink
Fix primefaces#7120: Breadcrumb shows a trailing separator when there…
Browse files Browse the repository at this point in the history
… is only one item
  • Loading branch information
meddvedev committed Sep 8, 2024
1 parent ef05cdd commit abff49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/breadcrumb/BreadCrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export const BreadCrumb = React.memo(
<nav {...rootProps}>
<ol {...menuProps}>
{home}
{home && separator}
{home && !!items?.length && separator}
{items}
</ol>
</nav>
Expand Down

0 comments on commit abff49a

Please sign in to comment.