[ObjectPage]: Scrollbar jumps to the focused section once go out and come back to the browser tab

Aperta
#9,161 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Lukas742 ci sta già lavorando.

Dal 20/11/2026.

  • #9163 di @Lukas742 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Start with the Object Page component and the section focus and scroll behavior shown in the linked isolated example. Reproduce the tab-switch sequence: scroll to another section without selecting it, switch away from the browser tab, then return. Done when the scrollbar stays at its current position after returning; compare with the linked SAPUI5 example.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

SAP SF
Describe the bug

In Object Page component, scrollbar jumps back to the focused section once user goes out of the browser tab and comes back to it.

Isolated Example

https://ui5.github.io/webcomponents-react/v2/?path=/story/layouts-floorplans-objectpage--section-with-custom-header

Reproduction steps
  1. Navigate to the first section of the object page so that it shows blue border around it.
  2. Now use mouse to scroll down to different section but don't select it.
  3. Go out of the browser tab/window and come back to the page
  4. Observe that scrollbar jumps back to the first section which was in focus
Expected Behaviour

Scrollbar shouldn't jump back to first section or focused section instead stay on the current scroll position.
It appears that SAPUI5 didn't have that issue - https://ui5.sap.com/#/entity/sap.uxap.ObjectPageLayout/sample/sap.uxap.sample.ObjectPageOnJSON

Screenshots or Videos

https://github.com/user-attachments/assets/6948b873-420e-4f8e-b165-6395ec1b4a14

UI5 Web Components for React Version

V2

UI5 Web Components Version

NA

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

Organization

SFSF

Declaration
  • I’m not disclosing any internal or sensitive information.
Lingua principale
TypeScript
Stelle
544
Fork
113
Merge medio
1g 16h
PR unite (30g)
34

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UI5/webcomponents-react

Tutte le issue di UI5/webcomponents-react

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.