odoo/odoo#200094

Created by fw-bot
Merged at 60c02cb0537b6c78b1caa1acca962c393f7349eb

Statuses:

label
odoo-dev:saas-18.2-18.0-kanban-load-more-scroll-juca-420107-fw
head
b14b573cc54ca648dabf37be90074880fb984193
merged
7 months ago by JavaScript, Julien Carion (juca)
odoo/odoo
18.0 #199541
saas-18.1 #200087
saas-18.2 #200094
saas-18.3
saas-18.4
19.0
master #200450

[FW][FIX] web: Preserve scroll position in Kanban when loading more data

This commit fixes an issue where clicking "Load more" in the first column of the Kanban view caused the page to scroll to the button, making users lose their previous position. This appears to be related to the browser's behavior of scrolling to a focused element if it still exists after DOM mutations. However, it remains unclear why this only affects the first column and not the others.

As a temporary workaround, a t-key is added to the "Load more" button to ensure it is removed and replaced each time it is clicked. This issue was partially addressed in #115706, but that fix is no longer relevant with this commit.

Forward-Port-Of: #199541