Skip to content

Commit 41acfb7

Browse files
committed
Update default containerRef property
1 parent fe7a27c commit 41acfb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ ScrollTrigger.propTypes = {
181181

182182
ScrollTrigger.defaultProps = {
183183
component: 'div',
184-
containerRef: 'html',
184+
containerRef: (typeof document !== 'undefined') ? document.documentElement : 'html',
185185
throttleResize: 100,
186186
throttleScroll: 100,
187187
triggerOnLoad: true,

0 commit comments

Comments
 (0)