diff --git a/frontend/src/lib/components/PersonTypeahead.svelte b/frontend/src/lib/components/PersonTypeahead.svelte
index f6a8f2d2..8ec884cb 100644
--- a/frontend/src/lib/components/PersonTypeahead.svelte
+++ b/frontend/src/lib/components/PersonTypeahead.svelte
@@ -61,6 +61,15 @@
dispatch('change', { value: person.id });
}
+ let inputEl: HTMLInputElement;
+ let dropdownStyle = '';
+
+ function updateDropdownPosition() {
+ if (!inputEl) return;
+ const rect = inputEl.getBoundingClientRect();
+ dropdownStyle = `position:fixed;top:${rect.bottom + 4}px;left:${rect.left}px;width:${rect.width}px`;
+ }
+
function clickOutside(node: HTMLElement) {
const handleClick = (event: any) => {
if (node && !node.contains(event.target) && !event.defaultPrevented) {
@@ -74,30 +83,36 @@
}
+