From ca460443d17b87711068395d3c2dbd2715d52520 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 21 Mar 2024 15:30:58 +0100 Subject: [PATCH] Fixed position on command when filtering --- .../GenericNode/components/parameterComponent/index.tsx | 5 +++-- src/frontend/src/components/inputComponent/index.tsx | 9 +++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 87777ca79..f8faab81c 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -586,13 +586,14 @@ export default function ParameterComponent({ optionsIcon="Globe" optionsButton={ - + } diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx index 8cb5080d1..a0581eab3 100644 --- a/src/frontend/src/components/inputComponent/index.tsx +++ b/src/frontend/src/components/inputComponent/index.tsx @@ -136,10 +136,15 @@ export default function InputComponent({ side="bottom" align="center" > - + { + if (value.includes(search) || value.includes("doNotFilter-")) + return 1; // ensures items arent filtered + return 0; + }} + > - No results found. {options.map((option, id) => (