Skip to content

ObjectPage" ObjectPageSection: current selectedSectionId is not taken into account while render #6765

@star4beam

Description

@star4beam

Describe the bug

Controlled change of selectedSectionId is not taken into account.
Despite the fact that the selectedSectionId is changed, the ObjectPage does show the selected section.

Documentation states:

... it sets the current selected ObjectPageSection by id.
This can be used to change the selected section by clicking on a custom link or by other user interactions.

Isolated Example

https://stackblitz.com/edit/github-e1km2ma4-qmfewvz4?file=src%2FApp.tsx,package.json

Reproduction steps

  1. Manually store the selectedSectionId in the React state
  2. Change the selectedSectionId interactively (by clicking on a button, etc)
  3. The active ObjectPageSection is not changed, the related tab is not highlighted as well.

Expected Behaviour

The ObjectPage should show the selected section and highlight the related tab when selectedSectionId is changed.
In other words, a controlled way of changing tab should work.

Screenshots or Videos

Image

UI5 Web Components for React Version

2.5.1, 1.29.11

UI5 Web Components Version

2.5.1, 1.24.11

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

Organization

SAP

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions