Skip to content

Commit

Permalink
refactor: change action close validator
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-martins-brisa committed Sep 25, 2023
1 parent 9ea0abc commit 6c72a12
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions projects/ion/src/lib/popover/popover.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,8 @@ export class IonPopoverDirective implements OnDestroy {
}

private shouldClosePopover(index: number): boolean {
const ionIconCloseIndex = 2;
const action = this.ionPopoverActions && this.ionPopoverActions[index];

if (index === ionIconCloseIndex) {
return true;
}

return !action || !action.keepOpenAfterAction;
}
}

0 comments on commit 6c72a12

Please sign in to comment.