@atlaskit/tooltip
Advanced tools
Comparing version 8.0.9 to 8.0.10
# @atlaskit/tooltip | ||
## 8.0.10 | ||
- [patch] AK-4064 ensure unmountComponentAtNode is called for components rendered via ReactDOM.render [e3153c3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e3153c3) | ||
- [patch] AK-4064 ensure unmountComponentAtNode is called for components rendered via ReactDOM.render [e3153c3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e3153c3) | ||
## 8.0.9 | ||
@@ -4,0 +8,0 @@ |
@@ -64,4 +64,7 @@ 'use strict'; | ||
value: function componentWillUnmount() { | ||
if (document.body) { | ||
document.body.removeChild(this.portalElement); | ||
var target = document.body; | ||
var portal = this.portalElement; | ||
if (target && portal) { | ||
(0, _reactDom.unmountComponentAtNode)(portal); | ||
target.removeChild(portal); | ||
} | ||
@@ -68,0 +71,0 @@ } |
@@ -7,3 +7,3 @@ import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of'; | ||
import { Children, Component } from 'react'; | ||
import { render } from 'react-dom'; | ||
import { render, unmountComponentAtNode } from 'react-dom'; | ||
@@ -42,4 +42,7 @@ var Portal = function (_Component) { | ||
value: function componentWillUnmount() { | ||
if (document.body) { | ||
document.body.removeChild(this.portalElement); | ||
var target = document.body; | ||
var portal = this.portalElement; | ||
if (target && portal) { | ||
unmountComponentAtNode(portal); | ||
target.removeChild(portal); | ||
} | ||
@@ -46,0 +49,0 @@ } |
{ | ||
"name": "@atlaskit/tooltip", | ||
"version": "8.0.8" | ||
"version": "8.0.9" | ||
} |
{ | ||
"name": "@atlaskit/tooltip", | ||
"version": "8.0.9", | ||
"version": "8.0.10", | ||
"description": "A React Component for displaying Tooltips", | ||
@@ -19,3 +19,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@atlaskit/layer-manager": "^2.5.4", | ||
"@atlaskit/layer-manager": "^2.5.5", | ||
"@atlaskit/theme": "^2.2.9", | ||
@@ -22,0 +22,0 @@ "react-transition-group": "^2.2.1", |
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
67720
1515