Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tooltip - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

10

lib/Popup.js

@@ -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';

7

lib/Tooltip.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc