Skip to content

Commit

Permalink
Fix: aria-labelledby added to matching dropdown (fixes #190)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-allen-89 committed Jul 12, 2024
1 parent 92ab2e5 commit dd16360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/matching.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Matching(props) {

{text &&
<div className="matching-item__title">
<div className="matching-item__title_inner" dangerouslySetInnerHTML={{ __html: compile(text) }}>
<div id={`${_id}-matching-item-${_index}__title`} className="matching-item__title_inner" dangerouslySetInnerHTML={{ __html: compile(text) }}>
</div>
</div>
}
Expand Down
1 change: 1 addition & 0 deletions templates/matchingDropDown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export default function MatchingDropDown(props) {
ref={list}
disabled={!_isEnabled}
aria-activedescendant={highlightedOption && `dropdown__item__${_id}__${_itemIndex}__${highlightedOption._index}`}
aria-labelledby={`${_id}-matching-item-${_itemIndex}__title`}
>

{options.map(({
Expand Down

0 comments on commit dd16360

Please sign in to comment.