@rgossiaux/svelte-headlessui
Advanced tools
Comparing version 1.0.0-beta.11 to 1.0.0-beta.12
@@ -1,14 +0,4 @@ | ||
import { tick } from "svelte"; | ||
export function portal(element, target) { | ||
if (target) { | ||
target.append(element); | ||
// During initial render, the "portal" might be constructed before | ||
// the root component has even attached, causing the portal to not work. | ||
// This is a workaround for this issue--it can't guarantee the portal is | ||
// **always** last, but it should catch the normal cases. | ||
tick().then(() => { | ||
if (target && element !== target.lastChild) { | ||
target.appendChild(element); | ||
} | ||
}); | ||
} | ||
@@ -15,0 +5,0 @@ return { |
@@ -18,3 +18,3 @@ { | ||
"repository": "github:rgossiaux/svelte-headlessui", | ||
"version": "1.0.0-beta.11", | ||
"version": "1.0.0-beta.12", | ||
"peerDependencies": { | ||
@@ -21,0 +21,0 @@ "svelte": "^3.44.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
326545
5094