Skip to content

Commit

Permalink
change order of call (#8415)
Browse files Browse the repository at this point in the history
Co-authored-by: OlgaLarina <[email protected]>
  • Loading branch information
OlgaLarina and OlgaLarina authored Jun 13, 2024
1 parent 848f048 commit 697dcd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ export class ListModel<T extends BaseAction = Action> extends ActionContainer<T>
if (this.allowSelection) {
this.selectedItem = itemValue;
}
if (!!this.onSelectionChanged) {
this.onSelectionChanged(itemValue);
}
const action = (itemValue as IAction).action;
if (!!action) {
action(itemValue);
}
if (!!this.onSelectionChanged) {
this.onSelectionChanged(itemValue);
}
};

protected popupAfterShowCallback(itemValue: T) {
Expand Down

0 comments on commit 697dcd9

Please sign in to comment.