Skip to content

Commit

Permalink
Fix #7574: VirtualScroller not displaying in ListBox (#7577)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 7, 2025
1 parent 262bdf3 commit 3d5c790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/virtualscroller/VirtualScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export const VirtualScroller = React.memo(
};

const init = () => {
if (!props.disabled && isVisible(elementRef.current)) {
if (!props.disabled && DomHandler.isVisible(elementRef.current)) {
setSize();
calculateOptions();
setSpacerSize();
Expand All @@ -559,7 +559,7 @@ export const VirtualScroller = React.memo(
};

React.useEffect(() => {
if (!viewInitialized.current && isVisible(elementRef.current)) {
if (!viewInitialized.current && isVisible()) {
viewInit();
viewInitialized.current = true;
}
Expand Down

0 comments on commit 3d5c790

Please sign in to comment.