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
Their is no way to detect when a user clicks away from the model (on the background) triggering it to close. The event happens here when it calls this.setState({open: false}):
In our case, we can't use componentWillUnmount, we are using a global model that remains mounted the entire life of the app. When subscribed to the model ZfApi.subscribe(this.props.modalId, (name, msg) => { it would be ideal to see a "close" event issued for the overlayClose in addition to the X and Cancel.
The text was updated successfully, but these errors were encountered:
Their is no way to detect when a user clicks away from the model (on the background) triggering it to close. The event happens here when it calls
this.setState({open: false})
:https://github.com/akiran/react-foundation-apps/blob/master/src/modal/index.jsx#L35
In our case, we can't use
componentWillUnmount
, we are using a global model that remains mounted the entire life of the app. When subscribed to the modelZfApi.subscribe(this.props.modalId, (name, msg) => {
it would be ideal to see a "close" event issued for theoverlayClose
in addition to theX
andCancel
.The text was updated successfully, but these errors were encountered: