[ObjectPage]: Scrollbar jumps to the focused section once go out and come back to the browser tab
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 57/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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
Reproduction steps
- Navigate to the first section of the object page so that it shows blue border around it.
- Now use mouse to scroll down to different section but don't select it.
- Go out of the browser tab/window and come back to the page
- 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.
- Dominant language
- TypeScript
- Stars
- 544
- Forks
- 113
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 34
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UI5/webcomponents-react
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UI5/webcomponents-react#9181 ·
Maintainers usually reply within 1 day
-
[AnalyticalTable]: useF2CellEdit inserts "undefined" into grid-cell aria-labelPossibly taken @Lukas742 claimed this 5 days ago. OpenSAP SF
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
UI5/webcomponents-react#9171 ·
Maintainers usually reply within 1 day
-
[ObjectPage]: page will twitch when the header height reaching the threshold of expansion and collapsePossibly taken @Lukas742 claimed this 8 days ago. Open
Difficulty 3/5 Half a day Newbie friendliness 55/100
UI5/webcomponents-react#9128 · 9 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
UI5/webcomponents-react#8529 ·
Maintainers usually reply within 1 day
-
Design Pending SAP SF
Difficulty 3/5 1-2 days Newbie friendliness 45/100
UI5/webcomponents-react#8158 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
All issues in UI5/webcomponents-react
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
can1357/oh-my-pi#21349 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ohcnetwork/care_fe#17474 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100