Skip to content

Commit

Permalink
feat(Select): add title for option (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
u4aew authored Dec 16, 2024
1 parent b628086 commit 03b5dbf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Select/components/SelectList/OptionWrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ type OptionWrapProps = {
};

const DefaultOption = ({option}: DefaultOptionProps) => {
const {content, children, disabled} = option;
return <span className={b('option-default-label', {disabled})}>{content || children}</span>;
const {content, children, disabled, title} = option;
return (
<span title={title} className={b('option-default-label', {disabled})}>
{content || children}
</span>
);
};

export const OptionWrap = (props: OptionWrapProps) => {
Expand Down

0 comments on commit 03b5dbf

Please sign in to comment.