mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix the id used in aria-controls used to make a relationship between the popup and its parent
This commit is contained in:
parent
20b0be973c
commit
e7229854bd
2 changed files with 22 additions and 1 deletions
|
@ -1954,7 +1954,10 @@ class PopupAnnotationElement extends AnnotationElement {
|
|||
element.addHighlightArea();
|
||||
}
|
||||
|
||||
this.container.setAttribute("aria-controls", elementIds.join(","));
|
||||
this.container.setAttribute(
|
||||
"aria-controls",
|
||||
elementIds.map(id => `${AnnotationPrefix}${id}`).join(",")
|
||||
);
|
||||
|
||||
return this.container;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue