Skip to content

Commit

Permalink
Switch to div
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanu1 committed Oct 27, 2021
1 parent 2d42d04 commit 6d67ad9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sample-app/src/components/InputDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function InputDropdown({
const [latestUserInput, setLatestUserInput] = useState(inputValue);

const inputRef = useRef<HTMLInputElement>(document.createElement('input'));
const resultsCountRef = useRef<HTMLElement>(document.createElement('span'));
const resultsCountRef = useRef<HTMLDivElement>(document.createElement('div'));

if (inputRef.current.value || options.length || resultsCountRef.current.innerHTML) {
updateResultsCountText();
Expand Down Expand Up @@ -169,11 +169,11 @@ export default function InputDropdown({
</div>
}
{cssClasses.resultsCount &&
<span
<div
className={`${cssClasses.resultsCount} sr-only`}
aria-live='assertive'
ref={resultsCountRef}>
</span>
</div>
}
{shouldDisplayDropdown &&
<Dropdown
Expand Down

0 comments on commit 6d67ad9

Please sign in to comment.