From 9a0b82cd01bfe0b47ce26f634aa12193e400606d Mon Sep 17 00:00:00 2001 From: Sergey Uchaev Date: Sun, 15 Dec 2024 22:12:17 +0300 Subject: [PATCH] feat(Select): add title for option --- .../Select/components/SelectList/OptionWrap.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Select/components/SelectList/OptionWrap.tsx b/src/components/Select/components/SelectList/OptionWrap.tsx index 3b82dcfbd..83654556a 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) => { @@ -31,7 +35,6 @@ export const OptionWrap = (props: OptionWrapProps) => { return (