Skip to content

Commit

Permalink
Update default containerRef property
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhefner committed Jan 16, 2019
1 parent fe7a27c commit 41acfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ ScrollTrigger.propTypes = {

ScrollTrigger.defaultProps = {
component: 'div',
containerRef: 'html',
containerRef: (typeof document !== 'undefined') ? document.documentElement : 'html',
throttleResize: 100,
throttleScroll: 100,
triggerOnLoad: true,
Expand Down

0 comments on commit 41acfb7

Please sign in to comment.