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 was archived by the owner on May 29, 2022. It is now read-only.
When close a dialog, console outputs two close string. Due to the way it implemented, when user close the dialog, it invoke onClose callback. (first time). The onClose function do setState({open: false} which invoke onClose callback again. (second time)
Example from https://react-mdc.github.io/#/dialog
When close a dialog, console outputs two
closestring. Due to the way it implemented, when user close the dialog, it invokeonClosecallback. (first time). TheonClosefunction dosetState({open: false}which invokeonClosecallback again. (second time)