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
The ObjectPagecomponent in mode="IconTabBar" fails to select the correct tab when selectedSectionId is updated. (e.g., via routing or state changes). The tab content updates correctly, but the UI does not reflect the active tab until manual interaction or page refresh.
Controlled change of selectedSectionId is not taken into account.
Despite the fact that the selectedSectionId has been changed, the ObjectPage does show the selected tab.
Isolated Example
No response
Reproduction steps
Configure an ObjectPage with mode="IconTabBar" and multiple ObjectPageSection.
Manually store the selectedSectionId in the React state
Change the selectedSectionId interactively (by clicking on a button, etc)
Observe that:
The content switches to the correct tab.
The tab header highlight does not update.
Expected Behaviour
When selectedSectionId changes, both the content and the tab header highlight should synchronize to reflect the active section.
In other words, a controlled way of changing tab should work.
Screenshots or Videos
In this screenshot, selecting the Change Tab 3 button fails to activate Tab 3, and the highlight is stuck on the Tab 1 header.
UI5 Web Components for React Version
UI5 Web Components for React Version
UI5 Web Components Version
2.8.1
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:
this sounds like a regression introduced in v2.8.1 which was fixed in v2.8.2.
Please update your dependencies and check the behavior again. In case it's still occurring even after updating, please add an isolated, reproducible example showing the issue, preferably by using this StackBlitz template.
Edit: Nevermind, I was able to reproduce the issue. We'll look into it asap.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The
ObjectPage
component in mode="IconTabBar"
fails to select the correct tab when selectedSectionId is updated. (e.g., via routing or state changes). The tab content updates correctly, but the UI does not reflect the active tab until manual interaction or page refresh.selectedSectionId
is not taken into account.selectedSectionId
has been changed, the ObjectPage does show the selected tab.Isolated Example
No response
Reproduction steps
mode="IconTabBar"
and multiple ObjectPageSection.Expected Behaviour
When
selectedSectionId
changes, both the content and the tab header highlight should synchronize to reflect the active section.In other words, a controlled way of changing tab should work.
Screenshots or Videos
In this screenshot, selecting the
Change Tab 3 button
fails to activateTab 3
, and the highlight is stuck on the Tab 1 header.UI5 Web Components for React Version
UI5 Web Components for React Version
UI5 Web Components Version
2.8.1
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: