rc-tooltip
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -16,3 +16,2 @@ 'use strict'; | ||
var utils = require('./utils'); | ||
var assign = require('object-assign'); | ||
var domAlign = require('dom-align'); | ||
@@ -76,6 +75,3 @@ | ||
} else if (!props.visible && prevProps.visible) { | ||
domNode.style.display = 'block'; | ||
anim(domNode, '' + transitionName + '-leave', function () { | ||
domNode.style.display = 'none'; | ||
}); | ||
anim(domNode, '' + transitionName + '-leave'); | ||
} | ||
@@ -106,5 +102,3 @@ } | ||
if (!props.visible) { | ||
style = assign({}, style, { | ||
display: 'none' | ||
}); | ||
className += ' ' + props.prefixCls + '-hidden'; | ||
} | ||
@@ -111,0 +105,0 @@ var arrowClassName = '' + props.prefixCls + '-arrow'; |
@@ -200,6 +200,11 @@ 'use strict'; | ||
var popupElement = props.renderPopupToBody ? null : this.getPopupElement(); | ||
var className = '' + props.prefixCls + '-wrap'; | ||
if (this.state.visible) { | ||
className += ' ' + props.prefixCls + '-wrap-open'; | ||
} | ||
return React.createElement( | ||
'span', | ||
_extends({ className: '' + props.prefixCls + '-wrap' }, mouseProps, { style: props.wrapStyle }), | ||
_extends({ className: className }, mouseProps, { style: props.wrapStyle }), | ||
[React.cloneElement(child, newChildProps), popupElement] | ||
@@ -206,0 +211,0 @@ ); |
{ | ||
"name": "rc-tooltip", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "tooltip ui component for react", | ||
@@ -57,5 +57,4 @@ "keywords": [ | ||
"dom-align": "1.x", | ||
"object-assign": "~3.0.0", | ||
"rc-util": "2.x" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
24365
3
523
- Removedobject-assign@~3.0.0
- Removedobject-assign@3.0.0(transitive)