diff --git a/packages/ui/src/dropdowns/custom-select.tsx b/packages/ui/src/dropdowns/custom-select.tsx
index 0fe64dc357..23485b3661 100644
--- a/packages/ui/src/dropdowns/custom-select.tsx
+++ b/packages/ui/src/dropdowns/custom-select.tsx
@@ -1,6 +1,7 @@
-import { Listbox } from "@headlessui/react";
+import { Combobox } from "@headlessui/react";
import { Check, ChevronDown } from "lucide-react";
import React, { useRef, useState } from "react";
+import { createPortal } from "react-dom";
import { usePopper } from "react-popper";
// plane helpers
import { useOutsideClickDetector } from "@plane/hooks";
@@ -54,7 +55,7 @@ const CustomSelect = (props: ICustomSelectProps) => {
};
return (
- {
>
<>
{customButton ? (
-
+
-
+
) : (
-
+
-
+
)}
>
- {isOpen && (
- closeDropdown()} static>
-
- {children}
-
-
- )}
-
+ {isOpen &&
+ createPortal(
+
+
+ ,
+ document.body
+ )}
+
);
};
const Option = (props: ICustomSelectItemProps) => {
const { children, value, className } = props;
return (
-
cn(
@@ -147,7 +153,7 @@ const Option = (props: ICustomSelectItemProps) => {
{selected && }
>
)}
-
+
);
};