Skip to content

ObjectPage Regression: Tab Switching Fails After Programmatic Navigation in ObjectPage with (IconTabBar Mode) #7235

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

Closed
1 task done
soriasayer opened this issue Apr 14, 2025 · 1 comment · Fixed by #7240
Labels

Comments

@soriasayer
Copy link

soriasayer commented Apr 14, 2025

Describe the bug

After the recent fix for programmatic tab highlighting 7215 a regression occurs when:

  1. Tab A → Tab B: Triggered via a button (programmatic navigation) → Tab B highlights and renders correctly.
  2. Tab B → Tab A: Clicking Tab A highlights it, but the content remains stuck on Tab B.
    • onSelectedSectionChange does not fire until manual refresh.

Isolated Example

No response

Reproduction steps

  1. Configure an ObjectPage with IconTabBar mode and two tabs (A and B).
  2. Navigate from Tab A to Tab B via a button (e.g., setSelectedSectionId("B")).
  3. Click back to Tab A in the tab strip.
  4. Observe:
    • Tab A is highlighted (UI).
    • Content remains on Tab B (incorrect).
    • No onSelectedSectionChange event is triggered.

Expected Behaviour

Clicking Tab A after programmatic navigation should:

  • Highlight Tab A and show its content.
  • Fire onSelectedSectionChange with selectedSectionId="A".

Screenshots or Videos

No response

UI5 Web Components for React Version

2.9.1

UI5 Web Components Version

2.9.0

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.
@soriasayer soriasayer changed the title [Component Name]: [Bug Description]Regression: Tab Switching Fails After Programmatic Navigation in ObjectPage (IconTabBar Mode) ObjectPage: Regression: Tab Switching Fails After Programmatic Navigation in ObjectPage (IconTabBar Mode) Apr 14, 2025
@soriasayer soriasayer changed the title ObjectPage: Regression: Tab Switching Fails After Programmatic Navigation in ObjectPage (IconTabBar Mode) ObjectPage: Regression: Tab Switching Fails After Programmatic Navigation in ObjectPage with (IconTabBar Mode) Apr 14, 2025
@soriasayer soriasayer changed the title ObjectPage: Regression: Tab Switching Fails After Programmatic Navigation in ObjectPage with (IconTabBar Mode) ObjectPage Regression: Tab Switching Fails After Programmatic Navigation in ObjectPage with (IconTabBar Mode) Apr 14, 2025
@ui5-webcomponents-react-bot
Copy link
Contributor

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

The release is available on v2.9.2

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
2 participants