details: https://code.tryton.org/tryton/commit/ba1fb062e5bc
branch: default
user: Nicolas Évrard <[email protected]>
date: Fri Oct 02 16:07:28 2026 +0200
description:
Do not go further than the modal window when computing the scrollable
ancestors
Closes #15143
diffstat:
sao/src/common.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 2665053b2c23 -r ba1fb062e5bc sao/src/common.js
--- a/sao/src/common.js Fri Oct 02 11:12:28 2026 +0200
+++ b/sao/src/common.js Fri Oct 02 16:07:28 2026 +0200
@@ -89,13 +89,16 @@
function getScrollableAncestors(el) {
let ancestors = [];
let parent = el.parentElement;
- while (parent && parent !== document.body) {
+ while (parent && (parent !== document.body ||
+ !parent.classList.contains('modal'))) {
if (isScrollable(parent)) {
ancestors.push(parent);
}
parent = parent.parentElement;
}
- ancestors.push(window);
+ if (!parent.classList.contains('modal')) {
+ ancestors.push(window);
+ }
return ancestors;
}