Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] Update react next patch #22105

Merged
merged 3 commits into from
Aug 8, 2020
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Aug 7, 2020

No description provided.

@eps1lon eps1lon added the test label Aug 7, 2020
Comment on lines +502 to +503
// FIXME: undesired behavior, should be 1
expect(handleBlur.callCount).to.equal(0);
Copy link
Member Author

Choose a reason for hiding this comment

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

These ones are odd. Investigating before merge

Copy link
Member Author

Choose a reason for hiding this comment

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

See facebook/react#19560. focusEvent.type is now focusin. We'll see if this is expected but it's definitely different than how onMouseEnter behaves. Comparing to onMouseEnter since this is similar to onFocus in that its native event type is not equal to the react event type.

},
);
}).to.throw(
'ensureListeningTo(): received a container that was not an element node. This is likely a bug in React.',
Copy link
Member Author

Choose a reason for hiding this comment

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

See facebook/react#19558. Wouldn't mind support being dropped.

@@ -132,8 +132,7 @@ describe('<ClickAwayListener />', () => {
expect(handleClickAway.callCount).to.equal(0);

fireEvent.click(getByText('Stop inside a portal'));
// True-negative, we don't have enough information to do otherwise.
expect(handleClickAway.callCount).to.equal(1);
expect(handleClickAway.callCount).to.equal(0);
Copy link
Member Author

Choose a reason for hiding this comment

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

See discussion in #20406 (comment). Seems to me expected behavior matches desired behavior with react@next

Copy link
Member

@oliviertassinari oliviertassinari Aug 8, 2020

Choose a reason for hiding this comment

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

Awesome, React helps us here :): #20406 (comment)

@mui-pr-bot
Copy link

Details of bundle changes

Generated by 🚫 dangerJS against 990bbea

@eps1lon
Copy link
Member Author

eps1lon commented Aug 8, 2020

Getting this in so that we're notified if behavior changes. The only concerning part about react@next is the FocusTrap.

@eps1lon eps1lon merged commit 7ce89eb into mui:next Aug 8, 2020
@eps1lon eps1lon deleted the test/update-react-next branch August 8, 2020 15:42
@eps1lon eps1lon restored the test/update-react-next branch August 8, 2020 15:51
@eps1lon
Copy link
Member Author

eps1lon commented Aug 8, 2020

Whoops. Was not meant to be merged.

@eps1lon eps1lon deleted the test/update-react-next branch August 8, 2020 15:55
Sign up for free to 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.

3 participants