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

Ouverte
#9,161 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@Lukas742 y travaille déjà.

Depuis le 20/11/2026.

  • #9163 par @Lukas742 — ouverte

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
57/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
react, typescript
Domaine
frontend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
TypeScript
Étoiles
544
Forks
113
Merge moyen
1 j 16 h
PR mergées (30 j)
34

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de UI5/webcomponents-react

Toutes les issues de UI5/webcomponents-react

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.