diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.html b/src/app/features/administration/form/steps/step-one/step-one.component.html index 1e3801db..07bf5c54 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.html +++ b/src/app/features/administration/form/steps/step-one/step-one.component.html @@ -18,7 +18,6 @@ (blur)="pollService.updateSlug()" id="title" maxlength="140" - autofocus="autofocus" required /> diff --git a/src/app/features/administration/form/steps/step-one/step-one.component.ts b/src/app/features/administration/form/steps/step-one/step-one.component.ts index 127cfb56..cb450807 100644 --- a/src/app/features/administration/form/steps/step-one/step-one.component.ts +++ b/src/app/features/administration/form/steps/step-one/step-one.component.ts @@ -43,6 +43,11 @@ export class StepOneComponent implements OnInit { if (event) { event.preventDefault(); } + const selector = '#title'; + const firstField = this.document.querySelector(selector); + if (firstField) { + firstField.focus(); + } this.router.navigate(['/']); } } diff --git a/src/app/features/administration/stepper/stepper.component.html b/src/app/features/administration/stepper/stepper.component.html index 9c6b984a..9cad93d2 100644 --- a/src/app/features/administration/stepper/stepper.component.html +++ b/src/app/features/administration/stepper/stepper.component.html @@ -50,6 +50,7 @@ >7 +
Souhaitez-vous vraiment quitter le sondage ? Toutes les informations seront effacées.
-+ {{ 'popup.cancel.main' | translate }} +
+ +