Skip to content

Does react still require non-toplevel submit handler? #12251

Closed

Description

@Ailrun

Do you want to request a feature or report a bug?

bug? Maybe.

What is the current behavior?

Using non-delegated handler for submit event.

What is the expected behavior?

After IE9, at least I know, submit event bubbled up.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

16.2.0

Activity

  1. rayan0 commented on Feb 22, 2018

    @rayan0

    nice

  2. aweary commented on Feb 24, 2018

    @aweary
    Contributor

    @Ailrun I'm not sure what you're asking, can you please clarify?

  3. Ailrun commented on Feb 24, 2018

    @Ailrun
    Author

    @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!

  4. gaearon commented on Aug 8, 2018

    @gaearon
    Collaborator

    I guess we could do it — are there any specific benefits aside from that we can?

  5. Ailrun commented on Aug 9, 2018

    @Ailrun
    Author

    What we get is what we get from delegation in first place, I guess?

  6. gaearon commented on Aug 9, 2018

    @gaearon
    Collaborator

    Fair enough. Was just curious if you're going for something in particular.

  7. Ailrun commented on Aug 9, 2018

    @Ailrun
    Author

    Oh, I just found this while analysing react code, not in some specific use case.

  8. philipp-spiess commented on Aug 10, 2018

    @philipp-spiess
    Contributor

    @Ailrun Thanks for bringing this - I've created a PR to try that in #13358 and it seems to work across browsers. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions