From c9f066cb677262c3d46ddc014c902d1ff3724de8 Mon Sep 17 00:00:00 2001 From: imechoim Date: Tue, 8 Aug 2023 11:16:55 +0200 Subject: [PATCH] fix(Select): disable option selection (cherry-pick) (#871) Co-authored-by: Yevhenii Chernovol --- src/components/Select/Select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Select/Select.tsx b/src/components/Select/Select.tsx index ee12407d55..b23095957d 100644 --- a/src/components/Select/Select.tsx +++ b/src/components/Select/Select.tsx @@ -112,7 +112,7 @@ export const Select = React.forwardRef(function const handleOptionClick = React.useCallback( (option?: FlattenOption) => { - if (!option || 'label' in option) { + if (!option || option?.disabled || 'label' in option) { return; }