Skip to content

Commit

Permalink
docs(ui5-menu): remove allowPreventDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
tsanislavgatev committed Jan 6, 2025
1 parent 56f7d13 commit 52aada2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/main/src/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ type MenuBeforeCloseEventDetail = { escPressed: boolean };
* Fired when an item is being clicked.
*
* **Note:** Since 1.17.0 the event is preventable, allowing the menu to remain open after an item is pressed.
* @allowPreventDefault
* @param { HTMLElement } item The currently clicked menu item.
* @param { string } text The text of the currently clicked menu item.
* @public
Expand All @@ -126,7 +125,6 @@ type MenuBeforeCloseEventDetail = { escPressed: boolean };
*
* **Note:** Since 1.14.0 the event is also fired before a sub-menu opens.
* @public
* @allowPreventDefault
* @since 1.10.0
* @param { HTMLElement } item The `ui5-menu-item` that triggers opening of the sub-menu or undefined when fired upon root menu opening.
*/
Expand Down Expand Up @@ -155,7 +153,6 @@ type MenuBeforeCloseEventDetail = { escPressed: boolean };
/**
* Fired before the menu is closed. This event can be cancelled, which will prevent the menu from closing.
* @public
* @allowPreventDefault
* @param {boolean} escPressed Indicates that `ESC` key has triggered the event.
* @since 1.10.0
*/
Expand Down
2 changes: 0 additions & 2 deletions packages/main/src/MenuItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ type MenuItemAccessibilityAttributes = Pick<AccessibilityAttributes, "ariaKeySho
*
* **Note:** Since 1.14.0 the event is also fired before a sub-menu opens.
* @public
* @allowPreventDefault
* @since 1.10.0
* @param { HTMLElement } item The `ui5-menu-item` that triggers opening of the sub-menu or undefined when fired upon root menu opening.
*/
Expand All @@ -93,7 +92,6 @@ type MenuItemAccessibilityAttributes = Pick<AccessibilityAttributes, "ariaKeySho
/**
* Fired before the menu is closed. This event can be cancelled, which will prevent the menu from closing.
* @public
* @allowPreventDefault
* @param {boolean} escPressed Indicates that `ESC` key has triggered the event.
* @since 1.10.0
*/
Expand Down

0 comments on commit 52aada2

Please sign in to comment.