Skip to content

Commit

Permalink
Removing focus after a dialog is opened.
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaremagico committed Oct 20, 2024
1 parent aac6919 commit 3b6c738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager)
[![GitHub last commit](https://img.shields.io/github/last-commit/softwaremagico/KendoTournamentManager)](https://github.com/softwaremagico/KendoTournamentManager)
[![CircleCI](https://circleci.com/gh/softwaremagico/KendoTournamentManager.svg?style=shield)](https://circleci.com/gh/softwaremagico/KendoTournamentManager)
[![Time](https://img.shields.io/badge/development-652h-blueviolet.svg)]()
[![Time](https://img.shields.io/badge/development-652.5h-blueviolet.svg)]()

[![Powered by](https://img.shields.io/badge/powered%20by%20java-orange.svg?logo=OpenJDK&logoColor=white)]()
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=kendo-tournament-backend&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=kendo-tournament-backend)
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/app/views/fight-list/fight-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ export class FightListComponent extends RbacBasedComponent implements OnInit, On
openConfirmationGenerateElementsDialog(): void {
if (this.getFights().length > 0) {
let dialogRef: MatDialogRef<ConfirmationDialogComponent> = this.dialog.open(ConfirmationDialogComponent, {
disableClose: false
disableClose: false,
restoreFocus: false,
});
dialogRef.componentInstance.messageTag = "deleteFightsWarning"

Expand Down Expand Up @@ -494,6 +495,7 @@ export class FightListComponent extends RbacBasedComponent implements OnInit, On
width: '90vw',
height: height,
maxWidth: '1000px',
restoreFocus: false,
data: {
action: Action.Add,
entity: fight,
Expand All @@ -512,6 +514,7 @@ export class FightListComponent extends RbacBasedComponent implements OnInit, On
width: '90vw',
height: height,
maxWidth: '1000px',
restoreFocus: false,
data: {
action: Action.Add,
entity: fight,
Expand Down

0 comments on commit 3b6c738

Please sign in to comment.