-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
priority: importantThis change can make a difference.This change can make a difference.scope: click away listenerThis is the name of the generic UI component, not the React module!This is the name of the generic UI component, not the React module!type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
On my app I have a menu that worked fine until I upgraded react and react-dom.
After upgrading react and react-dom from version 16.14.0 to version 17.0.0- on menu click, the menu flashes-it opens and closes right away.
- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
On menu click- the menu opens and closes right away, for some reason the ClickAwayListener is being fired.
Expected Behavior 🤔
On menu click- the menu should open, on click away it should close.
Steps to Reproduce 🕹
Steps:
- Upgrade
reactandreact-domto v17.0.0 - Click the menu
Codesandbox:
https://codesandbox.io/s/material-ui-issue-forked-byfgm?file=/src/index.js Invalid. New repro: https://codesandbox.io/s/material-ui-issue-forked-13053?file=/src/Demo.js
Your Environment 🌎
| Tech | Version |
|---|---|
| Material-UI/core | v4.11.0 |
| React | v17.0.0 |
| React-dom | v17.0.0 |
| Chrome | v86.0.4240.75 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: importantThis change can make a difference.This change can make a difference.scope: click away listenerThis is the name of the generic UI component, not the React module!This is the name of the generic UI component, not the React module!type: bugIt doesn't behave as expected.It doesn't behave as expected.