[new feature] Dialog: add close-on-popstate prop (#3709)

This commit is contained in:
neverland
2019-07-01 17:00:33 +08:00
committed by GitHub
parent 2df51f5aef
commit e4ce6137bf
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -60,6 +60,7 @@ Dialog.defaultOptions = {
confirmButtonColor: null,
showConfirmButton: true,
showCancelButton: false,
closeOnPopstate: false,
closeOnClickOverlay: false,
callback: action => {
instance[action === 'confirm' ? 'resolve' : 'reject'](action);