Closed campbellgoe closed 5 years ago
@GCDeveloper
I think should add new feature to handle when click outside such as onClickOutside
confirmAlert({
onClickOutside: () => // Some logic,
customUI: ({ onClose }) => {
return (
<div className='custom-ui'>
<h1>Are you sure?</h1>
<p>You want to delete this file?</p>
<button>No</button>
<button>Yes, Delete it!</button>
</div>
)
}
})
This issue was solved in version 2.3.0
There currently seems to be no way to specify a custom onClose function, i.e. when click outside the modal, and you want to do some custom logic when it closes.