Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
star4beam opened this issue Dec 19, 2024 · 1 comment · Fixed by #6768
Closed
1 task done
Labels

Comments

@star4beam
Copy link

star4beam commented Dec 19, 2024

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.
@ui5-webcomponents-react-bot
Copy link
Contributor

🎉 This issue has been resolved in version v2.6.0 🎉

The release is available on v2.6.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

2 participants