We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e867df commit c04c010Copy full SHA for c04c010
src/components/video/Video.js
@@ -81,10 +81,10 @@ var Video = React.createClass({
81
// Set up all React media events and call method
82
// on props if provided.
83
this.mediaEventProps = EVENTS.reduce((p, c) => {
84
- p[c] = () => {
+ p[c] = (e) => {
85
if (c in this.props && typeof this.props[c] === 'function') {
86
// A prop exists for this mediaEvent, call it.
87
- this.props[c]();
+ this.props[c](e);
88
}
89
this._updateStateFromVideo();
90
};
0 commit comments