Skip to content

Commit 87bcbff

Browse files
committed
Merge pull request react#1632 from spicyj/img-load-error
Fix onLoad and onError on images
2 parents 6ce1936 + 3e34739 commit 87bcbff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/browser/ui/dom/components/ReactDOMImg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ var ReactDOMImg = ReactCompositeComponent.createClass({
4444
},
4545

4646
componentDidMount: function() {
47-
this.trapBubbledEvent(EventConstants.topLevelTypes.topReset, 'load');
48-
this.trapBubbledEvent(EventConstants.topLevelTypes.topSubmit, 'error');
47+
this.trapBubbledEvent(EventConstants.topLevelTypes.topLoad, 'load');
48+
this.trapBubbledEvent(EventConstants.topLevelTypes.topError, 'error');
4949
}
5050
});
5151

0 commit comments

Comments
 (0)