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
Before 0.75, I can do that without a warning, as shown in the 0.74 example.
Actual Result
However, since 0.75, I'm getting this warning when onClose is fired:
Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.
Is it a bug or do I really need to use a trigger element from now on?
Version
0.75.1
The text was updated successfully, but these errors were encountered:
layershifter
changed the title
Modal on close warning in 0.75
Modal: on close warning in 0.75
Oct 23, 2017
@layershifter
I suspect in 0.75, the new argument {scrolling:false} for trySetState in Modal.js is causing the error in /lib/AutoControlledComponent.js
Steps
0.75.1 example
0.74 example
Sometimes I have to pragmatically open or close a modal without the help of
trigger
prop. This is just an example:Before 0.75, I can do that without a warning, as shown in the 0.74 example.
Actual Result
However, since 0.75, I'm getting this warning when
onClose
is fired:Is it a bug or do I really need to use a
trigger
element from now on?Version
0.75.1
The text was updated successfully, but these errors were encountered: