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
Describe the bug
I am encountering an issue with simplebar-react where the recalculate() method does not seem to exist on the ref object as suggested by some parts of the documentation or community examples. This is causing difficulties in managing dynamic content sizes in React.
Describe the bug
I am encountering an issue with
simplebar-react
where therecalculate()
method does not seem to exist on the ref object as suggested by some parts of the documentation or community examples. This is causing difficulties in managing dynamic content sizes in React.To Reproduce
Steps to reproduce the behavior:
recalculate()
method is undefined on theSimpleBar
ref.Expected behaviour
I expect to be able to call
ref.current.recalculate()
to adjust the scrollbar when the content size changes dynamically.Actual behaviour*
The
ref.current.recalculate()
is undefined, and thus I cannot invoke this method to manage dynamic content changes.Reproducible example
See codesandbox link above.
Additional context
N/A
Your environment
The text was updated successfully, but these errors were encountered: