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

rc-tooltip

Package Overview
Dependencies
Maintainers
6
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 3.7.1 to 3.7.2

es/Content.js

19

es/Tooltip.js

@@ -10,2 +10,3 @@ import _extends from 'babel-runtime/helpers/extends';

import { placements } from './placements';
import Content from './Content';

@@ -35,7 +36,9 @@ var Tooltip = function (_Component) {

arrowContent
), React.createElement(
'div',
{ className: prefixCls + '-inner', key: 'content', id: id },
typeof overlay === 'function' ? overlay() : overlay
)];
), React.createElement(Content, {
key: 'content',
trigger: _this.trigger,
prefixCls: prefixCls,
id: id,
overlay: overlay
})];
}, _this.saveTrigger = function (node) {

@@ -46,8 +49,2 @@ _this.trigger = node;

Tooltip.prototype.componentDidUpdate = function componentDidUpdate() {
if (this.props.visible) {
this.trigger.forcePopupAlign();
}
};
Tooltip.prototype.getPopupDomNode = function getPopupDomNode() {

@@ -54,0 +51,0 @@ return this.trigger.getPopupDomNode();

@@ -39,2 +39,6 @@ 'use strict';

var _Content = require('./Content');
var _Content2 = _interopRequireDefault(_Content);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -65,7 +69,9 @@

arrowContent
), _react2['default'].createElement(
'div',
{ className: prefixCls + '-inner', key: 'content', id: id },
typeof overlay === 'function' ? overlay() : overlay
)];
), _react2['default'].createElement(_Content2['default'], {
key: 'content',
trigger: _this.trigger,
prefixCls: prefixCls,
id: id,
overlay: overlay
})];
}, _this.saveTrigger = function (node) {

@@ -76,8 +82,2 @@ _this.trigger = node;

Tooltip.prototype.componentDidUpdate = function componentDidUpdate() {
if (this.props.visible) {
this.trigger.forcePopupAlign();
}
};
Tooltip.prototype.getPopupDomNode = function getPopupDomNode() {

@@ -84,0 +84,0 @@ return this.trigger.getPopupDomNode();

{
"name": "rc-tooltip",
"version": "3.7.1",
"version": "3.7.2",
"description": "React Tooltip",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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