rc-dialog
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -46,2 +46,3 @@ /** @jsx React.DOM */ | ||
}, | ||
show: function () { | ||
@@ -59,2 +60,3 @@ var self = this; | ||
}, | ||
close: function () { | ||
@@ -70,2 +72,3 @@ if (this.state.visible) { | ||
}, | ||
render: function () { | ||
@@ -100,2 +103,9 @@ var self = this; | ||
); | ||
}, | ||
componentDidMount: function () { | ||
if (this.state.visible) { | ||
this.refs.dialog.getDOMNode().focus(); | ||
this.props.onShow(); | ||
} | ||
} | ||
@@ -102,0 +112,0 @@ }); |
{ | ||
"name": "rc-dialog", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "dialog ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
18090
263