You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Specifically I'm dealing with this issue in React. Because of the render cycle and the way react works, you'd expect the state of the component to be updated before the event fires, not after.
Currently, when React runs through a new render, the state of the Menu still appears to be open, even though it should be closed which is creating synchronicity issues. My current workaround is to wrap the adapter method in a timeout so it will actually fire after the the menu is really closed.
material-components-web/packages/mdc-menu/foundation.js
Line 255 in a3c2de5
Specifically I'm dealing with this issue in React. Because of the render cycle and the way react works, you'd expect the state of the component to be updated before the event fires, not after.
Currently, when React runs through a new render, the state of the Menu still appears to be open, even though it should be closed which is creating synchronicity issues. My current workaround is to wrap the adapter method in a timeout so it will actually fire after the the menu is really closed.
The text was updated successfully, but these errors were encountered: