Skip to content

Commit 2de6c97

Browse files
rSensationvkbansal
authored andcommitted
Added an option to prevent some subscriptions (#287)
* added an option to prevent some subscriptions * fixed tests * updated react-router-dom and audit-fixed/deduped .lock file
1 parent 2499d77 commit 2de6c97

File tree

5 files changed

+83
-742
lines changed

5 files changed

+83
-742
lines changed

docs/api.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ Base Contextmenu Component.
1212

1313
#### PropTypes
1414

15-
| Property | Type | Required? | Description |
16-
|--------------|----------|-----------|------------------------------------------------------------------|
17-
| id | String || A unique identifier for a menu. |
18-
| hideOnLeave | Boolean | | Hides the context menu on mouse leave. |
19-
| onMouseLeave | Function | | Callback called when the mouse leaves the menu or submenu areas. |
20-
| onHide | Function | | Callback called when the menu is hidden. |
21-
| onShow | Function | | Callback called when the menu is shown. |
22-
| className | String | | Custom `className` applied to root element of the context-menu. |
15+
| Property | Type | Required? | Description |
16+
|--------------------------|----------|-----------|------------------------------------------------------------------|
17+
| id | String || A unique identifier for a menu. |
18+
| hideOnLeave | Boolean | | Hides the context menu on mouse leave. |
19+
| onMouseLeave | Function | | Callback called when the mouse leaves the menu or submenu areas. |
20+
| onHide | Function | | Callback called when the menu is hidden. |
21+
| onShow | Function | | Callback called when the menu is shown. |
22+
| preventHideOnContextMenu | Boolean | | Prevents hiding of the context menu on contextMenu event. |
23+
| preventHideOnResize | Boolean | | Prevents hiding of the context menu on resize event. |
24+
| preventHideOnScroll | Boolean | | Prevents hiding of the context menu on scroll event. |
25+
| className | String | | Custom `className` applied to root element of the context-menu. |
2326

2427
### `<ContextMenuTrigger />`
2528

0 commit comments

Comments
 (0)