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

Abierto
#9,161 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Lukas742 ya está trabajando en esto.

Desde el 20/11/2026.

  • #9163 de @Lukas742 — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
57/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
TypeScript
Estrellas
544
Forks
113
Merge medio
1 d 16 h
PR fusionados (30 d)
34

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de UI5/webcomponents-react

Todos los issues de UI5/webcomponents-react

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.