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

Aberta
#9,161 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@Lukas742 já está trabalhando nisso.

Desde 20/11/2026.

  • #9163 de @Lukas742 — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
57/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
react, typescript
Domínio
frontend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
TypeScript
Estrelas
544
Forks
113
Merge médio
1d 16h
PRs com merge (30d)
34

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de UI5/webcomponents-react

Todas as issues de UI5/webcomponents-react

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.