Attach (recommended) or Link to PDF file here:
[t2210-tax-cat2.pdf](https://github.com/mozilla/pdf.js/files/9824222/t2210-tax-cat2.pdf)

Configuration:
- Web browser and its version: Firefox nightly
- Operating system and its version: Windows 11

Steps to reproduce the problem:
1. Try to check to first checkbox, i.e. Single

What is the expected behavior? (add screenshot)
To have a check mark.

What went wrong? (add screenshot)
Nothing happens.

if (!annotationCanvasMap) {
      return;
    }
    for (const [id, canvas] of annotationCanvasMap) {
      const element = div.querySelector(`[data-annotation-id="${id}"]`);
      if (!element) {
        continue;
      }
      const { firstChild } = element;
      if (!firstChild) {
        element.append(canvas);
      } else if (firstChild.nodeName === "CANVAS") {
        firstChild.replaceWith(canvas);
      } else {
        firstChild.before(canvas);
      }
    }
    annotationCanvasMap.clear();
  }
}
export { AnnotationLayer };