Comparing version 3.0.0 to 3.1.0
@@ -25,2 +25,3 @@ 'use strict'; | ||
align: React.PropTypes.string, | ||
anchor: typeof Element === 'undefined' ? React.PropTypes.any : React.PropTypes.instanceOf(Element), | ||
children: React.PropTypes.any.isRequired | ||
@@ -72,3 +73,3 @@ }, | ||
hideTooltip: function hideTooltip(e, callback) { | ||
if (!callback) callback = function () {}; | ||
if (!callback) callback = function callback() {}; | ||
if (this.state.showTimeout) window.clearTimeout(this.state.showTimeout); | ||
@@ -87,3 +88,3 @@ if (this._node) { | ||
ReactDOM.render(React.createElement(TooltipInternal, _extends({}, this.props, { | ||
anchor: this._container, | ||
anchor: this.props.anchor || this._container, | ||
nubClassName: nubClasses[this.props.align], | ||
@@ -90,0 +91,0 @@ className: 'round pad1 fill-white quiet shadow micro noevents contain' })), this._node); |
@@ -19,2 +19,3 @@ var React = require('react'), | ||
align: React.PropTypes.string, | ||
anchor: typeof Element === 'undefined' ? React.PropTypes.any : React.PropTypes.instanceOf(Element), | ||
children: React.PropTypes.any.isRequired | ||
@@ -77,3 +78,3 @@ }, | ||
<TooltipInternal {...this.props} | ||
anchor={this._container} | ||
anchor={this.props.anchor || this._container} | ||
nubClassName={nubClasses[this.props.align]} | ||
@@ -80,0 +81,0 @@ className='round pad1 fill-white quiet shadow micro noevents contain' />, |
{ | ||
"name": "cooltip", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "a react tooltip implementation", | ||
@@ -5,0 +5,0 @@ "main": "dist/tooltip.js", |
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
16056
407