[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

View File

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