uiuiui-color
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _reactDom = require('react-dom'); | ||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
var _reactLifecyclesCompat = require('react-lifecycles-compat'); | ||
@@ -90,3 +94,5 @@ | ||
value = _state.value; | ||
var className = this.props.className; | ||
var _props = this.props, | ||
className = _props.className, | ||
target = _props.target; | ||
@@ -107,3 +113,3 @@ | ||
), | ||
interacting && _react2.default.createElement( | ||
interacting && (target !== undefined ? _reactDom2.default.createPortal : identity)(_react2.default.createElement( | ||
_uiuiui.Popup, | ||
@@ -117,3 +123,3 @@ { onClose: this.end }, | ||
}) | ||
) | ||
), target) | ||
); | ||
@@ -120,0 +126,0 @@ } |
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import polyfill from 'react-lifecycles-compat'; | ||
@@ -50,3 +51,4 @@ | ||
let { | ||
className | ||
className, | ||
target | ||
} = this.props; | ||
@@ -69,2 +71,6 @@ | ||
interacting && | ||
(target !== undefined ? | ||
ReactDOM.createPortal : | ||
identity | ||
)( | ||
<Popup onClose={this.end}> | ||
@@ -83,3 +89,5 @@ { | ||
} | ||
</Popup> | ||
</Popup>, | ||
target | ||
) | ||
} | ||
@@ -86,0 +94,0 @@ </div> |
{ | ||
"name": "uiuiui-color", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:danburzo/uiuiui-color.git", |
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
81735
2287