Skip to content

Commit

Permalink
feat(Select): add title on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
iapolya committed Dec 2, 2024
1 parent 1890b87 commit f37d07c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ export const Select = React.forwardRef<HTMLButtonElement, SelectProps>(function
}
: undefined
}
title={title}
>
{renderPopup({renderFilter: _renderFilter, renderList: _renderList})}
</SelectPopup>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Select/components/SelectPopup/SelectPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const SelectPopup = React.forwardRef<HTMLDivElement, SelectPopupProps>(
virtualized,
mobile,
id,
title,
},
ref,
) =>
Expand All @@ -41,6 +42,7 @@ export const SelectPopup = React.forwardRef<HTMLDivElement, SelectPopupProps>(
className={className}
visible={Boolean(open)}
onClose={handleClose}
title={title}
>
{children}
</Sheet>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Select/components/SelectPopup/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export type SelectPopupProps = {
virtualized?: boolean;
id?: string;
onAfterClose?: () => void;
};
} & Pick<SelectProps, 'title'>;

0 comments on commit f37d07c

Please sign in to comment.