Skip to content

Commit 85acbdc

Browse files
committed
Omit onProgress callback from wrapping div
1 parent 47641e4 commit 85acbdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, {Component} from 'react';
22
import PropTypes from 'prop-types';
33
import ReactDOM from 'react-dom';
4+
import omit from 'lodash.omit';
45
import throttle from 'lodash.throttle';
56
import cleanProps from 'clean-react-props';
67

@@ -125,7 +126,7 @@ class ScrollTrigger extends Component {
125126

126127
return (
127128
<div
128-
{...cleanProps(this.props)}
129+
{...omit(cleanProps(this.props), ['onProgress'])}
129130
ref={(element) => {
130131
this.element = element;
131132
}}

0 commit comments

Comments
 (0)