Skip to content

Commit

Permalink
Fix: Passing unknown props to gif img again.
Browse files Browse the repository at this point in the history
  • Loading branch information
benwiley4000 committed Mar 30, 2018
1 parent 2697bdc commit 29aeab5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,12 @@ class GifPlayerContainer extends React.Component {
}

render () {
// extract these props but pass down the rest
const { autoplay, pauseRef, onTogglePlay, ...rest } = this.props;
const { actualGif, actualStill, playing } = this.state;
return (
<GifPlayer
{...rest}
gif={actualGif}
still={actualStill}
playing={playing}
Expand Down

0 comments on commit 29aeab5

Please sign in to comment.