feat(Dialog): enable close-on-popsate by default (#6873)

This commit is contained in:
neverland
2020-07-25 14:56:45 +08:00
committed by GitHub
parent cdf3bebfab
commit 0bae33de4c
4 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ Dialog.defaultOptions = {
confirmButtonColor: null,
showConfirmButton: true,
showCancelButton: false,
closeOnPopstate: false,
closeOnPopstate: true,
closeOnClickOverlay: false,
callback: (action) => {
instance[action === 'confirm' ? 'resolve' : 'reject'](action);