{
+ console.log("Inside root keydown");
+ }}
>
- root()?.getRootNode() as Node}
- open={shouldRender()}
- onEscapeKeyDown={handleAsCancelled}
- onInteractOutside={handleAsCancelled}
- onPointerDownOutside={handleAsCancelled}
+
);
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index d471241..22763ac 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -30,6 +30,11 @@ export function loadSelector() {
const element = document.createElement(elementName);
element.id = elementId;
+
+ // Ensure above all else
+ element.style.position = "relative";
+ element.style.zIndex = "999999";
+
document.body.appendChild(element);
}