Skip to content

Commit 500829b

Browse files
committed
Merge pull request 'change onClick prop to optional in IContextMenuItem' (#17) from feature/fix-context-menu-item into develop
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/docspace-plugin-sdk/pulls/17 Reviewed-by: Timofey Boyko <timofey.boyko@onlyoffice.com>
2 parents 7c7fa6a + ecc2810 commit 500829b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
## Changed
66

77
- Separate security for file in another enum FilesSecurity
8+
- change onClick prop to optional in IContextMenuItem
89

910
## Added
1011

src/interfaces/items/IContextMenuItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export interface IContextMenuItem {
125125
* A function that takes the file/folder/room id as an argument. This function can be asynchronous
126126
*
127127
*/
128-
onClick: (id: number) => Promise<IMessage> | IMessage | void;
128+
onClick?: (id: number) => Promise<IMessage> | IMessage | void;
129129

130130
/**
131131
* Specifies elements as submenus.

0 commit comments

Comments
 (0)