1
0
Fork 0
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:
Calixte Denizet 2023-08-31 15:19:05 +02:00
parent 20b0be973c
commit e7229854bd
2 changed files with 22 additions and 1 deletions

View file

@ -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;
}