You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Manually store the selectedSectionId in the React state
Change the selectedSectionId interactively (by clicking on a button, etc)
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
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.
The text was updated successfully, but these errors were encountered:
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:
Isolated Example
https://stackblitz.com/edit/github-e1km2ma4-qmfewvz4?file=src%2FApp.tsx,package.json
Reproduction steps
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
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
The text was updated successfully, but these errors were encountered: