From 4dbb6403972c564e6d650d8d16b9081fd345fc82 Mon Sep 17 00:00:00 2001 From: Harshvardhan1012 Date: Sun, 27 Oct 2024 13:51:37 +0530 Subject: [PATCH] fix/select-option --- src/components/Select/common/InternalSelect.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Select/common/InternalSelect.tsx b/src/components/Select/common/InternalSelect.tsx index 9951c34c..195964f0 100644 --- a/src/components/Select/common/InternalSelect.tsx +++ b/src/components/Select/common/InternalSelect.tsx @@ -285,6 +285,9 @@ export const InternalSelect = ({ ); const optionContextValue = useMemo(() => { + if (selectedValues[0]?.startsWith("\n")) { + selectedValues.length = 0; + } return { search, updateHighlighted: setHighlighted,