[bugfix] Dialog: close method may cause error (#841)

This commit is contained in:
neverland 2018-04-09 20:14:52 +08:00 committed by GitHub
parent f060c0e59d
commit 91f44010e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,9 @@ Dialog.confirm = options => Dialog({
});
Dialog.close = () => {
instance.value = false;
if (instance) {
instance.value = false;
}
};
Dialog.setDefaultOptions = options => {