Skip to content

Commit

Permalink
make onSelectionChanged optional
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov82 committed May 31, 2024
1 parent 3896c89 commit 9eaa13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export class Action extends BaseAction implements IAction, ILocalizableOwner {
private createLocTitle(): LocalizableString {
return this.createLocalizableString("title", this, true);
}
public setItems(items: Array<IAction>, onSelectionChanged: (item: Action, ...params: any[]) => void): void {
public setItems(items: Array<IAction>, onSelectionChanged?: (item: Action, ...params: any[]) => void): void {
this.markerIconName = "icon-next_16x16";
this.component = "sv-list-item-group";
this.items = [...items];
Expand Down

0 comments on commit 9eaa13e

Please sign in to comment.