details: https://code.tryton.org/tryton/commit/da17bd93e6b7
branch: 8.2
user: Cédric Krier <[email protected]>
date: Tue Oct 06 13:12:24 2026 +0200
description:
Test if parent is not null before testing classList
Closes #15152
(grafted from 45cf3086a1f63732e3298845a1fa183375ec76b4)
diffstat:
sao/src/common.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b9a733d97f5d -r da17bd93e6b7 sao/src/common.js
--- a/sao/src/common.js Tue Oct 06 01:54:52 2026 +0200
+++ b/sao/src/common.js Tue Oct 06 13:12:24 2026 +0200
@@ -96,7 +96,7 @@
}
parent = parent.parentElement;
}
- if (!parent.classList.contains('modal')) {
+ if (parent && !parent.classList.contains('modal')) {
ancestors.push(window);
}
return ancestors;