Comparing version 1.1.1 to 1.1.2
@@ -71,2 +71,5 @@ 'use strict'; | ||
Dialog.prototype.destroy = function() { | ||
this.setState({ | ||
visible: false | ||
}); | ||
this.unmountDialog(); | ||
@@ -76,5 +79,2 @@ } | ||
this.props.onCancel.call(this); | ||
this.setState({ | ||
visible: false | ||
}); | ||
this.destroy(); | ||
@@ -87,3 +87,3 @@ }; | ||
if (needUnmount !== false) { | ||
this._onCancel(); | ||
this.destroy(); | ||
} | ||
@@ -90,0 +90,0 @@ }; |
{ | ||
"name": "m-dialog", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "m-dialog 移动端模态对话框", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28378