mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
support onLoad synthetic event attribute on 'object' tags - useful for telling when SVGs embedded as objects have loaded
This commit is contained in:
@@ -265,6 +265,7 @@ function trapBubbledEventsLocal() {
|
||||
|
||||
switch (inst._tag) {
|
||||
case 'iframe':
|
||||
case 'object':
|
||||
inst._wrapperState.listeners = [
|
||||
ReactBrowserEventEmitter.trapBubbledEvent(
|
||||
EventConstants.topLevelTypes.topLoad,
|
||||
@@ -465,6 +466,7 @@ ReactDOMComponent.Mixin = {
|
||||
|
||||
switch (this._tag) {
|
||||
case 'iframe':
|
||||
case 'object':
|
||||
case 'img':
|
||||
case 'form':
|
||||
case 'video':
|
||||
@@ -1022,6 +1024,7 @@ ReactDOMComponent.Mixin = {
|
||||
unmountComponent: function() {
|
||||
switch (this._tag) {
|
||||
case 'iframe':
|
||||
case 'object':
|
||||
case 'img':
|
||||
case 'form':
|
||||
case 'video':
|
||||
|
||||
Reference in New Issue
Block a user