@rgossiaux/svelte-headlessui
Advanced tools
Comparing version 1.0.0-beta.9 to 1.0.0-beta.10
@@ -11,2 +11,7 @@ export function portal(element, target) { | ||
destroy() { | ||
// Need to detach ourselves--we can't rely on Svelte always detaching | ||
// us since we moved in the component tree. | ||
if (target?.contains(element)) { | ||
target.removeChild(element); | ||
} | ||
if (target && target.childNodes.length <= 0) { | ||
@@ -13,0 +18,0 @@ target.parentElement?.removeChild(target); |
@@ -18,3 +18,3 @@ { | ||
"repository": "github:rgossiaux/svelte-headlessui", | ||
"version": "1.0.0-beta.9", | ||
"version": "1.0.0-beta.10", | ||
"peerDependencies": { | ||
@@ -21,0 +21,0 @@ "svelte": "^3.44.0" |
@@ -19,3 +19,3 @@ # svelte-headlessui | ||
``` | ||
npm install @rgossiaux/svelte-headlessui | ||
npm install -D @rgossiaux/svelte-headlessui | ||
``` | ||
@@ -22,0 +22,0 @@ |
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
327047
249
5054