Comparing version 1.3.7 to 1.3.8
{ | ||
"name": "tether", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"homepage": "http://github.hubspot.com/tether", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "tether", | ||
"repo": "HubSpot/tether", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -1,2 +0,2 @@ | ||
/*! tether 1.3.7 */ | ||
/*! tether 1.3.8 */ | ||
@@ -111,3 +111,3 @@ (function(root, factory) { | ||
var node = zeroElement; | ||
if (!node) { | ||
if (!node || !document.body.contains(node)) { | ||
node = document.createElement('div'); | ||
@@ -114,0 +114,0 @@ node.setAttribute('data-tether-id', uniqueId()); |
{ | ||
"name": "tether", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"description": "A client-side library to make absolutely positioned elements attach to elements in the page efficiently.", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -10,3 +10,3 @@ ## Tether | ||
Some common UI elements that have been built with Tether are [tooltips](http://github.hubspot.com/tooltip/docs/welcome), [select menus](http://github.hubspot.com/select/docs/welcome), [dropdown menus](http://github.hubspot.com/drop/docs/welcome), and [guided tours](http://github.hubspot.com/shepherd/docs/welcome). Tether is flexible and can be used to [solve](http://github.hubspot.com/tether/examples/out-of-bounds/) [all](http://github.hubspot.com/tether/examples/content-visible) [kinds](http://github.hubspot.com/tether/examples/element-scroll) [of](http://github.hubspot.com/tether/examples/enable-disable) [interesting]() [problems](http://github.hubspot.com/tether/examples/viewport); it ensures UI elements stay where they need to be, based on the various user interactions (click, scroll, etc) and layout contexts (fixed positioning, inside scrollable containers, etc). | ||
Some common UI elements that have been built with Tether are [tooltips](http://github.hubspot.com/tooltip/docs/welcome), [select menus](http://github.hubspot.com/select/docs/welcome), [dropdown menus](http://github.hubspot.com/drop/docs/welcome), and [guided tours](http://github.hubspot.com/shepherd/docs/welcome). Tether is flexible and can be used to [solve](http://github.hubspot.com/tether/examples/out-of-bounds/) [all](http://github.hubspot.com/tether/examples/content-visible) [kinds](http://github.hubspot.com/tether/examples/element-scroll) [of](http://github.hubspot.com/tether/examples/enable-disable) interesting [problems](http://github.hubspot.com/tether/examples/viewport); it ensures UI elements stay where they need to be, based on the various user interactions (click, scroll, etc) and layout contexts (fixed positioning, inside scrollable containers, etc). | ||
@@ -13,0 +13,0 @@ Please have a look at the [documentation](http://github.hubspot.com/tether/) for a more detailed explanation of why you might need Tether for your next project. |
@@ -87,3 +87,3 @@ let TetherBase; | ||
let node = zeroElement; | ||
if (!node) { | ||
if (!node || !document.body.contains(node)) { | ||
node = document.createElement('div'); | ||
@@ -90,0 +90,0 @@ node.setAttribute('data-tether-id', uniqueId()); |
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
1153536