Skip to content

Commit 0591602

Browse files
committed
#36 Solve react-unknown-prop when using copyKeys
Upgraded React version in order to replicate
1 parent d573310 commit 0591602

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"dependencies": {
1313
"css-reset": "git+https://github.com/60frames/css-reset.git",
1414
"lodash.throttle": "^3.0.4",
15-
"react": "^15.0.0",
16-
"react-dom": "^15.0.0"
15+
"react": "^15.2.0",
16+
"react-dom": "^15.2.0"
1717
},
1818
"devDependencies": {
1919
"babel-core": "^5.8.25",

src/components/video/Video.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ var Video = React.createClass({
338338
render() {
339339
// If controls prop is provided remove it
340340
// and use our own controls.
341-
var {controls, ...otherProps} = this.props;
341+
// Leave `copyKeys` here even though not used
342+
// as per issue #36.
343+
var {controls, copyKeys, ...otherProps} = this.props;
342344
return (
343345
<div className={this.getVideoClassName()}
344346
tabIndex="0"

0 commit comments

Comments
 (0)