Skip to content

Commit 5af1fd3

Browse files
committed
Fix spacing regression
1 parent 80e08f3 commit 5af1fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-spectrum/s2/src/TreeView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export const TreeItemContent = (props: Omit<TreeItemContentProps, 'children'> &
348348
width: '[calc(calc(var(--tree-item-level, 0) - 1) * var(--indent))]'
349349
})} />
350350
{/* TODO: revisit when we do async loading, at the moment hasChildItems will only cause the chevron to be rendered, no aria/data attributes indicating the row's expandability are added */}
351-
{hasChildItems && <ExpandableRowChevron isDisabled={isDisabled} isExpanded={isExpanded} scale={scale} />}
351+
<ExpandableRowChevron isDisabled={isDisabled} isExpanded={isExpanded} scale={scale} isHidden={!(hasChildItems)} />
352352
<Provider
353353
values={[
354354
[TextContext, {styles: treeContent}],

0 commit comments

Comments
 (0)