support svg-container classes as interactable svg elements (#1042)

This commit is contained in:
Shuchang Zheng
2024-10-23 22:23:36 -07:00
committed by GitHub
parent 13eb85b9f2
commit ae86b45ed3

View File

@@ -448,6 +448,11 @@ function isInteractable(element) {
if (hasAngularClickBinding(element)) {
return true;
}
// https://www.oxygenxml.com/dita/1.3/specs/langRef/technicalContent/svg-container.html
// svg-container is usually used for clickable elements that wrap SVGs
if (element.className.toString().includes("svg-container")) {
return true;
}
}
// support listbox and options underneath it