We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10eca7e commit 2ce4f0dCopy full SHA for 2ce4f0d
1 file changed
packages/eui/src/components/selectable/selectable.tsx
@@ -755,12 +755,11 @@ export class EuiSelectable<T = {}> extends Component<
755
value={searchValue}
756
onChange={this.onSearchChange}
757
listId={this.optionsListRef.current ? this.listId : undefined} // Only pass the listId if it exists on the page
758
- {...(activeOptionIndex != null
759
- ? {
760
- 'aria-activedescendant':
761
- this.makeOptionId(activeOptionIndex),
762
- }
763
- : {})}
+ aria-activedescendant={
+ activeOptionIndex != null
+ ? this.makeOptionId(activeOptionIndex)
+ : undefined
+ }
764
placeholder={placeholderName}
765
isPreFiltered={!!isPreFiltered}
766
optionMatcher={optionMatcher!}
0 commit comments