Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double-firing submit events (#12877)
We were adding a listener at the root when we weren't meant to. Blames to e96dc14. This now alerts once (at FORM) instead of twice (at FORM, #document): ``` var Hello = class extends React.Component { render() { return ( <form onSubmit={(e) => {e.preventDefault(); alert('hi ' + e.nativeEvent.currentTarget.nodeName);}}> <button>hi</button> </form> ); } }; ```
- Loading branch information