From a8d6ff04e43a81a3c76373469ffebdfcfa8ac9f2 Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Tue, 7 Nov 2023 00:03:05 +0100 Subject: [PATCH] fix: dropdown with the height of the sticky div (#605) --- gui/src/components/ComboBox.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gui/src/components/ComboBox.tsx b/gui/src/components/ComboBox.tsx index 6ae0d9789..0c103c4d0 100644 --- a/gui/src/components/ComboBox.tsx +++ b/gui/src/components/ComboBox.tsx @@ -707,6 +707,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { }, [inputRef.current, props.isMainInput, persistSession]); const deleteButtonDivRef = React.useRef(null); + const stickyDropdownHeaderDiv = React.useRef(null); const selectContextItemFromDropdown = useCallback( (event: any) => { @@ -1408,6 +1409,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { > {nestedContextProvider && (
{ {nestedContextProvider.description}
)} -
+
{downshiftProps.isOpen && items.map((item, index) => (