@strands.gg/accui 2.11.26 → 2.11.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +4 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2036,10 +2036,13 @@ function useFloatingPosition(options) {
|
|
|
2036
2036
|
zIndex: "9999"
|
|
2037
2037
|
});
|
|
2038
2038
|
const calculatePosition = async () => {
|
|
2039
|
+
await nextTick();
|
|
2039
2040
|
if (!trigger.value || !floating.value) {
|
|
2040
2041
|
return;
|
|
2041
2042
|
}
|
|
2042
|
-
|
|
2043
|
+
if (typeof trigger.value.getBoundingClientRect !== "function" || typeof floating.value.getBoundingClientRect !== "function") {
|
|
2044
|
+
return;
|
|
2045
|
+
}
|
|
2043
2046
|
const triggerRect = trigger.value.getBoundingClientRect();
|
|
2044
2047
|
const floatingRect = floating.value.getBoundingClientRect();
|
|
2045
2048
|
const [basePlacement, alignment = "start"] = placement.split("-");
|