Skip to content

Commit 9989dc4

Browse files
author
Richard Palmer
committed
Add style prop support to container div
1 parent 144334a commit 9989dc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/video/Video.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,13 @@ var Video = React.createClass({
360360
// and use our own controls.
361361
// Leave `copyKeys` here even though not used
362362
// as per issue #36.
363-
var {controls, copyKeys, ...otherProps} = this.props;
363+
var {controls, copyKeys, style, ...otherProps} = this.props;
364364
return (
365365
<div className={this.getVideoClassName()}
366366
tabIndex="0"
367367
onFocus={this.onFocus}
368-
onBlur={this.onBlur}>
368+
onBlur={this.onBlur}
369+
style={style}>
369370
<video
370371
{...otherProps}
371372
className="video__el"

0 commit comments

Comments
 (0)