Verbessere die Erkennung von Zeilen in _findRowElement durch Verwendung von data-automationid und Klassenname.

This commit is contained in:
Torsten Brendgen
2026-07-17 21:22:16 +02:00
parent 2f5baff82f
commit b585816faf

View File

@@ -172,7 +172,9 @@ export default class ExpiryIndicatorFieldCustomizer
let level: number = 0; let level: number = 0;
while (current && level < 16) { while (current && level < 16) {
const className: string = typeof current.className === 'string' ? current.className : ''; const className: string = typeof current.className === 'string' ? current.className : '';
if (current.getAttribute('role') === 'row' || className.indexOf('ms-DetailsRow') >= 0) { const classes: string[] = className ? className.split(/\s+/) : [];
if (current.getAttribute('data-automationid') === 'DetailsRow' ||
current.getAttribute('role') === 'row' || classes.indexOf('ms-DetailsRow') >= 0) {
return current; return current;
} }
current = current.parentElement; current = current.parentElement;