From 03b5dbfbe68abf98de3407643140ddb226379d51 Mon Sep 17 00:00:00 2001 From: u4aew Date: Mon, 16 Dec 2024 12:17:46 +0300 Subject: [PATCH] feat(Select): add title for option (#1994) --- .../Select/components/SelectList/OptionWrap.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Select/components/SelectList/OptionWrap.tsx b/src/components/Select/components/SelectList/OptionWrap.tsx index 054aa99f8f..83654556af 100644 --- a/src/components/Select/components/SelectList/OptionWrap.tsx +++ b/src/components/Select/components/SelectList/OptionWrap.tsx @@ -20,8 +20,12 @@ type OptionWrapProps = { }; const DefaultOption = ({option}: DefaultOptionProps) => { - const {content, children, disabled} = option; - return {content || children}; + const {content, children, disabled, title} = option; + return ( + + {content || children} + + ); }; export const OptionWrap = (props: OptionWrapProps) => {