Skip to content

Commit 78441b3

Browse files
authored
fix: aria-selected does work on Apple devices
1 parent 052e864 commit 78441b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-select/src/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ export default class Select<
20002000
onMouseOver: onHover,
20012001
tabIndex: -1,
20022002
role: 'option',
2003-
'aria-selected': this.state.isAppleDevice ? undefined : isSelected, // is not supported on Apple devices
2003+
'aria-selected': isSelected,
20042004
};
20052005

20062006
return (

0 commit comments

Comments
 (0)