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] expose 'beforeNavigate' event that can prevent the 'tab' navigation if needed #5342

Closed
1 task done
TinaAngeloski opened this issue Dec 12, 2023 · 1 comment · Fixed by #5557
Closed
1 task done
Labels
feature-request New feature or request released

Comments

@TinaAngeloski
Copy link

Is your feature request related to a problem?

We want to capture the moment before the ObjectPage navigates to a new tab, in order to warn the user when exiting edit mode, and letting the user choose if the want to proceed and switching the tab, or they want to stay and the tab is not switched. (same as done in UI5: https://ui5.sap.com/#/entity/sap.uxap.ObjectPageLayout/sample/sap.uxap.sample.ObjectPageBeforeNavigate)
The React WebComponents don't expose the beforeNavigate event, and the onSelectedSectionChange is already late, and can not be aborted.

Describe the solution you'd like

Object page should have a beforeNavigate event that can be aborted by the user if needed

Describe alternatives you've considered

No response

Additional Context

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
@ui5-webcomponents-react-bot
Copy link
Contributor

🎉 This issue has been resolved in version v1.26.0 🎉

The release is available on v1.26.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request released
Projects
Status: 2024-Q1
Development

Successfully merging a pull request may close this issue.

2 participants