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
The docs say that the container prop is a DOM element, and that the ScrollContainer will use that element to watch for scrolling. In the actual code, it appears that the container prop is actually a boolean. Default is false and it listens for scrolls on the document body. If container is true, it just uses the ScollContainer component itself, which is a div (this.$el).
The docs say that the
container
prop is a DOM element, and that the ScrollContainer will use that element to watch for scrolling. In the actual code, it appears that thecontainer
prop is actually a boolean. Default isfalse
and it listens for scrolls on the document body. Ifcontainer
istrue
, it just uses the ScollContainer component itself, which is a div (this.$el
).Looks like there's also an open PR related to this
So, instead of
The correct way to use a custom container with the current version of this package is:
I prefer it this way, but the API docs are misleading right now.
The text was updated successfully, but these errors were encountered: