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
Assuming you're using React 18+ in your project, when clicking on the modal toggle button to open the modal, the ClickOutsideListener calls handleClickOutside and then the close method in the Dialog component. This prevents the modal from opening. Also, you can see this error in the console:
Steps to reproduce
Steps to reproduce
Assuming you're using React 18+ in your project, when clicking on the modal toggle button to open the modal, the
ClickOutsideListener
callshandleClickOutside
and then theclose
method in theDialog
component. This prevents the modal from opening. Also, you can see this error in the console:You can switch the React and React DOM version to 16.14.0 to see it working previously.
https://codesandbox.io/p/sandbox/modal-issue-vxwiht
Similar to: #1087
Expected Behavior
When using the
Modal
component in React 18+, the modal should open when triggered and we should not see an error message;Actual Behavior
When using the
Modal
component in React 18+, the modal does not open.Version
latest
What browsers are you experiencing the problem on?
No response
Relevant log output
No response
Anything else we should know?
No response
The text was updated successfully, but these errors were encountered: