Skip to content

Commit b5c8c8b

Browse files
authored
remove resizer from dom when not in use (#3695)
* remove resizer from dom when not in use
1 parent 22d52cf commit b5c8c8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-spectrum/table/src/TableView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,9 @@ function TableVirtualizer({layout, collection, lastResizeInteractionModality, fo
506506
onScrollEnd={state.endScrolling}
507507
onScroll={onScroll}>
508508
{state.visibleViews[1]}
509-
<div
509+
{columnState.currentlyResizingColumn != null && <div
510510
className={classNames(styles, 'spectrum-Table-bodyResizeIndicator')}
511-
style={{left: `${resizerPosition}px`, height: `${Math.max(state.virtualizer.contentSize.height, state.virtualizer.visibleRect.height)}px`, display: 'block'}} />
511+
style={{left: `${resizerPosition}px`, height: `${Math.max(state.virtualizer.contentSize.height, state.virtualizer.visibleRect.height)}px`, display: 'block'}} /> }
512512
</ScrollView>
513513
</div>
514514
</FocusScope>

0 commit comments

Comments
 (0)