]> Untitled Git - lemmy-ui.git/commitdiff
fix(a11y): Restore aria-activedescendant
authorJay Sitter <jay@jaysitter.com>
Sun, 25 Jun 2023 05:03:06 +0000 (01:03 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 25 Jun 2023 05:03:06 +0000 (01:03 -0400)
src/shared/components/common/searchable-select.tsx

index 37a0c8367bbd9d57f4b9b5c9fe1e3f4363334dfc..801cd867496b547461776cc5d47b75869fc67185 100644 (file)
@@ -110,6 +110,7 @@ export class SearchableSelect extends Component<
           className="form-select d-inline-block text-start"
           aria-haspopup="listbox"
           aria-controls="searchable-select-input"
+          aria-activedescendant={options[selectedIndex].label}
           aria-expanded={false}
           data-bs-toggle="dropdown"
           onClick={linkEvent(this, focusSearch)}