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

オープン
#9,161 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Lukas742 がすでに取り組んでいます。

2026年11月20日 から。

  • #9163 @Lukas742 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
TypeScript
スター
544
フォーク
113
平均マージ
1日 16時間
マージ済み PR(30日)
34

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

UI5/webcomponents-react のほかの issue

UI5/webcomponents-react の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。