Skip to content

Conversation

@sophiebits
Copy link
Collaborator

This reverts the meaningful (src, non-test) part of commit 3bc6432 since we've reverted the commit it depended on in 18083a8. I don't fully understand the negative implications of leaving this unreverted but it sounds like consensus is that it's safer to revert.

I left the new fixture and verified it works correctly in Chrome 62 Mac, as well as the jest tests passing.

…ontrolled state on the real target (facebook#10444)"

This reverts the meaningful (src, non-test) part of commit 3bc6432 since we've reverted the commit it depended on in 18083a8. I don't fully understand the negative implications of leaving this unreverted but it sounds like consensus is that it's safer to revert.

I left the new fixture and verified it works correctly in Chrome 62 Mac, as well as the jest tests passing.
Copy link
Contributor

@jquense jquense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also reopen the issue closed by this commit? I don't think the previous PR caused that

@flarnie
Copy link
Contributor

flarnie commented Aug 22, 2017

I don't fully understand the negative implications of leaving this unreverted

In the commit we are reverting, createAndAccumulateChangeEvent started expecting a fourth argument. See https://github.com/facebook/react/blob/master/src/renderers/dom/shared/eventPlugins/ChangeEventPlugin.js#L57

But when I reverted the original PR which removed polyfills, I didn't catch a place where we are no longer passing the fourth argument to createAndAccumulateChangeEvent - see https://github.com/facebook/react/blob/master/src/renderers/dom/shared/eventPlugins/ChangeEventPlugin.js#L88-L92

A potential quick fix is to also revert Sebastian's commit, such that we no longer expect the fourth argument there, and any other inconsistencies I created would be smoothed out.

I will try to verify that either the issue Sebastian was fixing is not present after this fix, or that we reopen and fix the issue.

@sophiebits
Copy link
Collaborator Author

@jquense The fixture and new unit test added by the commit I'm reverting (but which I'm leaving in) did not pass without the original code change, but they pass after this commit (which includes the revert of your commit). @sebmarkbage also indicated in comments on #10444 that it looked like it blamed to your commit.

A potential quick fix is to also revert Sebastian's commit, such that we no longer expect the fourth argument there, and any other inconsistencies I created would be smoothed out. I will try to verify that either the issue Sebastian was fixing is not present after this fix, or that we reopen and fix the issue.

@flarnie That's what this PR is – a revert of Sebastian's commit. I verified that after this revert, everything seems to work properly (in particular, the bug that Seb was fixing is not present).

@flarnie
Copy link
Contributor

flarnie commented Aug 22, 2017

That's what this PR is – a revert of Sebastian's commit. I verified that after this revert, everything seems to work properly (in particular, the bug that Seb was fixing is not present).

Right - sorry, I wasn't clear, I was explaining why this commit, which reverts Sebastian's commit, was needed. Thanks for fixing this!

If you manually verified then I won't double-dip - lgtm.

@jsquense any luck reproducing the bug we discussed in the comments of #10483 ?

@sophiebits
Copy link
Collaborator Author

Yeah, I verified (included in my original message). :)

@sophiebits
Copy link
Collaborator Author

Thanks for the explanation! I had missed the signature change.

@sophiebits sophiebits merged commit 640eb70 into facebook:master Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants