Merge pull request #3672 from alfonso-salces/MOBILE-4248
MOBILE-4248 action: Fix popover position
This commit is contained in:
		
						commit
						b5453341eb
					
				| @ -146,7 +146,10 @@ export class AddonModDataActionComponent implements OnInit { | ||||
|     /** | ||||
|      * Open actions menu popover. | ||||
|      */ | ||||
|     async actionsMenu(): Promise<void> { | ||||
|     async actionsMenu(event: Event): Promise<void> { | ||||
|         event.stopPropagation(); | ||||
|         event.preventDefault(); | ||||
| 
 | ||||
|         const items: AddonModDataActionsMenuItem[] = []; | ||||
| 
 | ||||
|         if (this.entry.canmanageentry) { | ||||
| @ -202,6 +205,7 @@ export class AddonModDataActionComponent implements OnInit { | ||||
|             componentProps: { items }, | ||||
|             showBackdrop: true, | ||||
|             id: 'actionsmenu-popover', | ||||
|             event, | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| <ion-button size="small" *ngIf="action == 'actionsmenu'" fill="clear" (click)="actionsMenu()" | ||||
| <ion-button size="small" *ngIf="action == 'actionsmenu'" fill="clear" (click)="actionsMenu($event)" | ||||
|     [attr.aria-label]="'addon.mod_data.actionsmenu' | translate"> | ||||
|     <ion-icon name="fas-ellipsis-vertical" slot="icon-only" aria-hidden="true"></ion-icon> | ||||
| </ion-button> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user