rc-trigger
Advanced tools
Comparing version 1.8.1 to 1.8.2
# History | ||
---- | ||
## 1.8.2 / 2017-02-24 | ||
- change default container to absolute to fix scrollbar change problem | ||
## 1.7.0 / 2016-07-18 | ||
@@ -5,0 +9,0 @@ |
@@ -90,2 +90,7 @@ 'use strict'; | ||
var popupContainer = document.createElement('div'); | ||
// Make sure default popup container will never cause scrollbar appearing | ||
// https://github.com/react-component/trigger/issues/41 | ||
popupContainer.style.position = 'absolute'; | ||
popupContainer.style.top = '-9999px'; | ||
popupContainer.style.left = '-9999px'; | ||
var mountNode = instance.props.getPopupContainer ? instance.props.getPopupContainer((0, _reactDom.findDOMNode)(instance)) : document.body; | ||
@@ -92,0 +97,0 @@ mountNode.appendChild(popupContainer); |
{ | ||
"name": "rc-trigger", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "base abstract trigger component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -57,2 +57,4 @@ # rc-trigger | ||
Include the default [styling](https://github.com/react-component/trigger/blob/master/assets/index.less#L4:L11) and then: | ||
```js | ||
@@ -59,0 +61,0 @@ import React from 'react'; |
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
41529
936
246