Put in order · Angular course · Module 12: Security and Performance
Opening an accessible modal
Order the steps of the open() method that manages focus in a dialog (top to bottom):
Items to put in order
- this.previousFocus = document.activeElement;
- this.closeBtn.nativeElement.focus();
- this.dialog.nativeElement.showModal();
You can check the correct answer by solving this task in the CodeWorlds game.