Skip to content

Commit 7243b5f

Browse files
authored
docs(ObjectPage): adjust description of onBeforeNavigate (#7318)
Closes #7276
1 parent 20339c8 commit 7243b5f

File tree

1 file changed

+2
-2
lines changed
  • packages/main/src/components/ObjectPage/types

1 file changed

+2
-2
lines changed

packages/main/src/components/ObjectPage/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ export interface ObjectPagePropTypes extends Omit<CommonProps, 'placeholder'> {
120120
*/
121121
placeholder?: ReactNode;
122122
/**
123-
* The event is fired before the selected section is changed using the navigation. It can be aborted by the application with `preventDefault()`, which means that there will be no navigation.
123+
* Fired when a section is selected via the tab bar, before navigation occurs. To cancel navigation, call `event.preventDefault()` within the event handler.
124124
*
125-
* __Note:__ This event is only fired when navigating via tab-bar.
125+
* __Note:__ This event is fired every time a user selects a section, even if the section is already selected.
126126
*/
127127
onBeforeNavigate?: (event: Ui5CustomEvent<TabContainerDomRef, ObjectPageTabSelectEventDetail>) => void;
128128
/**

0 commit comments

Comments
 (0)