Closed bentleyvk closed 2 years ago
@iTwin/itwinui-react-1 can you check this one, I am not a fan of what I did here but I don't know what else could be done.
Another solution might be just making the user to tell us what is scrollable like intersectionRoot: 'table-body' | 'viewport' | HTMLElement
New changes look good to me!
Closes #699
useState
instead ofuseRef
to makeuseIntersection
hook rerender when row ref is get.getScrollableParent
on a row because Table body hasoverflow
set but for it to work, Table has to have a height set or using other methods to limit its height. So I am just comparingscrollHeight
andoffsetHeight
.Checklist