rc-dialog
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -40,5 +40,2 @@ /** @jsx React.DOM */ | ||
this.componentDidUpdate(); | ||
if (this.props.visible) { | ||
React.findDOMNode(this.refs.dialog).focus(); | ||
} | ||
}, | ||
@@ -51,5 +48,9 @@ | ||
this.monitorWindowResize(); | ||
if (!this.lastVisible) { | ||
React.findDOMNode(this.refs.dialog).focus(); | ||
} | ||
} else { | ||
this.unMonitorWindowResize(); | ||
} | ||
this.lastVisible = props.visible; | ||
}, | ||
@@ -95,3 +96,3 @@ | ||
<div {...maskProps} className={prefixClsFn(prefixCls, 'mask')}/> | ||
<div className={[prefixClsFn(prefixCls,''), props.className].join(' ')} tabIndex="0" role="dialog" ref='dialog' style={style}> | ||
<div className={[prefixClsFn(prefixCls, ''), props.className].join(' ')} tabIndex="0" role="dialog" ref='dialog' style={style}> | ||
<div className={prefixClsFn(prefixCls, 'content')}> | ||
@@ -98,0 +99,0 @@ <div className={prefixClsFn(prefixCls, 'header')}> |
{ | ||
"name": "rc-dialog", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"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
20671
446