Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/react-select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ export interface Props<
'aria-labelledby'?: AriaAttributes['aria-labelledby'];
/** Used to set the priority with which screen reader should treat updates to live regions. The possible settings are: off, polite (default) or assertive */
'aria-live'?: AriaAttributes['aria-live'];
/** HTML ID of an element that should be used as a description */
'aria-describedby'?: AriaAttributes['aria-describedby'];
/** Customise the messages used by the aria-live component */
ariaLiveMessages?: AriaLiveMessages<Option, IsMulti, Group>;
/** Focus the control when it is mounted */
Expand Down Expand Up @@ -1638,6 +1640,9 @@ export default class Select<
: {
'aria-describedby': this.getElementId('placeholder'),
}),
...(!!this.props['aria-describedby'] && {
'aria-describedby': this.props['aria-describedby'],
}),
};

if (!isSearchable) {
Expand Down