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

[Pickers] Fix picker components not opening on click in React 17 #24981

Merged
merged 3 commits into from
Feb 19, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Feb 17, 2021

Closes #24874

We're hitting facebook/react#20074 again.

Trying a different fix than the one in ClickAwayListener. In the lab we can experiment a bit more. Getting rid of the timers would make this logic easier to follow

I think I didn't fully grasp the implications of that bug since I thought facebook/react#20074 only had implications for components inside a Portal. But that's not true since it'll flush all effects in a React root (all roots?) not just in a particular subtree of a component.

Test plan

@eps1lon eps1lon added bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! labels Feb 17, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Feb 17, 2021

Details of bundle changes

Generated by 🚫 dangerJS against e21c758

@eps1lon eps1lon force-pushed the fix/pickers/clickaway-react17 branch from 445b402 to e21c758 Compare February 19, 2021 17:49
@eps1lon eps1lon marked this pull request as ready for review February 19, 2021 19:05
@eps1lon eps1lon merged commit ae62f9c into mui:next Feb 19, 2021
@eps1lon eps1lon deleted the fix/pickers/clickaway-react17 branch February 19, 2021 19:28
@oliviertassinari oliviertassinari changed the title [pickers] Fix picker components not opening on click in React 17 [Pickers] Fix picker components not opening on click in React 17 Feb 27, 2021
@Xhale1 Xhale1 mentioned this pull request Mar 3, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Date and DateTime picker selection palette isn't working on pressing calendar button
2 participants