You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Does react still require non-toplevel submit handler? #12251
states that 'submit' event is not delegated since it does not consistently bubble.
What browser makes the problem? At least I know, the problem occurs in IE8, and React 15/16 doesn't support it.
Could you give an name of browser that makes the problem?
Activity
rayan0 commentedon Feb 22, 2018
nice
aweary commentedon Feb 24, 2018
@Ailrun I'm not sure what you're asking, can you please clarify?
Ailrun commentedon Feb 24, 2018
@aweary
https://github.com/facebook/react/blob/94518b068bf52196abea0c83f4c9926bfe2065c6/packages/react-dom/src/events/BrowserEventConstants.js#L10-L16
states that
'submit'event is not delegated since it does not consistently bubble.What browser makes the problem? At least I know, the problem occurs in IE8, and React 15/16 doesn't support it.
Could you give an name of browser that makes the problem?
I really thank you for response!
gaearon commentedon Aug 8, 2018
I guess we could do it — are there any specific benefits aside from that we can?
Ailrun commentedon Aug 9, 2018
What we get is what we get from delegation in first place, I guess?
gaearon commentedon Aug 9, 2018
Fair enough. Was just curious if you're going for something in particular.
Ailrun commentedon Aug 9, 2018
Oh, I just found this while analysing react code, not in some specific use case.
philipp-spiess commentedon Aug 10, 2018
@Ailrun Thanks for bringing this - I've created a PR to try that in #13358 and it seems to work across browsers. 🎉