Skip to content

Use boolean assertion for documentMode check - #10032

Merged
aweary merged 1 commit into
react:15.6-devfrom
aweary:fix-event-detection-ie-15.6
Aug 1, 2017
Merged

Use boolean assertion for documentMode check#10032
aweary merged 1 commit into
react:15.6-devfrom
aweary:fix-event-detection-ie-15.6

Conversation

@aweary

Copy link
Copy Markdown
Contributor

Resolves#10030

Reverts a small change made in #8575. This should be safe, as we still use this assertion for the change event bubbling check.

cc @flarnie@gaearon this will require another 15.6.x release (not sure if one was planned)

@aweary

Copy link
Copy Markdown
ContributorAuthor

This change was already made in master as well: #7594 It just wasn't included in the backport.

@gaearon

Copy link
Copy Markdown
Collaborator

Why does #7594 change two lines but this PR changes one?

@aweary

Copy link
Copy Markdown
ContributorAuthor

@gaearon

Copy link
Copy Markdown
Collaborator

Mind creating an issue linking to everything that's still necessary for 15.6.x? Another one I'm thinking about is CurrentOwner bugfix.

@gaearon

Copy link
Copy Markdown
Collaborator

Need to run prettier?

@awearyaweary mentioned this pull request Jun 26, 2017
12 tasks
@aweary

Copy link
Copy Markdown
ContributorAuthor

@gaearon is the 15.6-dev branch meant to be working with prettier? I did run it locally but it was really out of sync, making the following changes:

	modified: addons/create-react-class/test.js
modified: addons/react-addons-create-fragment/test.js
modified: addons/react-addons-linked-state-mixin/test.js
modified: addons/react-addons-pure-render-mixin/test.js
modified: addons/react-addons-shallow-compare/test.js
modified: addons/react-addons-update/test.js
modified: addons/react-linked-input/test.js
modified: src/renderers/dom/ReactDOM.js
modified: src/renderers/dom/client/ReactBrowserEventEmitter.js
modified: src/renderers/dom/client/ReactMount.js
modified: src/renderers/dom/client/syntheticEvents/SyntheticWheelEvent.js
modified: src/renderers/dom/shared/DOMProperty.js
modified: src/renderers/dom/shared/ReactComponentBrowserEnvironment.js
modified: src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
modified: src/renderers/native/ReactNative.js
modified: src/renderers/native/ReactNativeComponentEnvironment.js
modified: src/renderers/shared/ReactDebugTool.js
modified: src/renderers/shared/fiber/__tests__/ReactCoroutine-test.js
modified: src/renderers/shared/hooks/__tests__/ReactHostOperationHistoryHook-test.js
modified: src/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js
modified: src/renderers/shared/stack/event/eventPlugins/TouchHistoryMath.js
modified: src/renderers/shared/stack/event/eventPlugins/__tests__/ResponderEventPlugin-test.js
modified: src/renderers/shared/stack/reconciler/ReactOwner.js
modified: src/renderers/shared/stack/reconciler/__tests__/ReactIdentity-test.js
modified: src/renderers/shared/utils/Transaction.js
modified: src/renderers/testing/ReactShallowRenderer.js
modified: src/test/ReactTestUtils.js

I can commit these changes (in a separate PR probably) if you'd like @gaearon

@gaearon

Copy link
Copy Markdown
Collaborator

Hmm. It used to work but maybe we're not yet using Yarn there so we need to cherry-pick #10038?

@aweary

Copy link
Copy Markdown
ContributorAuthor

@gaearon cherry-picking #10038 doesn't seem to resolve it.

@nhunzaker

Copy link
Copy Markdown
Contributor

I think we might have gotten a false positive on the commit where we first ran prettier. I just re-ran the build without cache and it looks like the prettier step failed:

https://circleci.com/gh/facebook/react/4254

It's hard to tell what version of prettier ran - possibly 1.4 - but do you think we just need to run prettier 1.2.2.0 again on 15.6-dev as @aweary suggested?

@gaearon

Copy link
Copy Markdown
Collaborator

I'm cool either way, let's just get the branch to be green.

@aweary
awearyforce-pushed the fix-event-detection-ie-15.6 branch 2 times, most recently from 2e092ea to 2c70e8eCompareJuly 19, 2017 16:04
@aweary

Copy link
Copy Markdown
ContributorAuthor

cc @gaearon@nhunzaker CI is now green 🎉

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@aweary@gaearon@nhunzaker@facebook-github-bot