From d763c20566094c6e10816f0b355a65688b708d21 Mon Sep 17 00:00:00 2001 From: Abhishek Verma Date: Wed, 6 Mar 2024 15:25:28 +0530 Subject: [PATCH] fix(combobox): allow disabling client side filtering (#32) --- packages/apsara-ui/src/Combobox/Combobox.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/apsara-ui/src/Combobox/Combobox.tsx b/packages/apsara-ui/src/Combobox/Combobox.tsx index 4ad548f5..c2138f57 100644 --- a/packages/apsara-ui/src/Combobox/Combobox.tsx +++ b/packages/apsara-ui/src/Combobox/Combobox.tsx @@ -31,6 +31,7 @@ const Combobox = ({ allowClear = true, showSearch = true, showArrow = true, + filterOption = true, placeholder, optionFilterProp, ...props @@ -89,7 +90,7 @@ const Combobox = ({ onSelect={onValueSelect} onDeselect={onValueDeselect} options={options} - filterOption={true} + filterOption={filterOption} optionFilterProp={optionFilterProp || "value"} animation="slide" >