You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we provide value of number 0 to a customBadgeContent property of TreeViewDataItem component, the value is ignored - instead the number of children of that TreeViewDataItem is displayed.
The issue is in TreeViewListItemBase:
<Badge {...badgeProps}>
{customBadgeContent ? customBadgeContent : (children as React.ReactElement<any>).props.data.length}
</Badge>
The text was updated successfully, but these errors were encountered:
Describe the problem
If we provide value of number
0
to acustomBadgeContent
property of TreeViewDataItem component, the value is ignored - instead the number of children of that TreeViewDataItem is displayed.The issue is in TreeViewListItemBase:
The text was updated successfully, but these errors were encountered: