Bug
When opening a modal dialog (MatDialog) the first clickable element (anchor, input element, button etc.) shouldn't be focused automatically.
The first clickable element within a dialog shouldn't be automatically selected when opening that dialog.
https://angular-ezhnx3.stackblitz.io
Having the first element selected automatically in most cases isn't the expected behaviour, for example if a modal dialog only contains a "cancel" and a "confirm" button I don't want the "cancel" button (or whichever comes first) to be automatically focused.
Angular 5.0.2
Angular Material 5.0.0-rc0
Closing as this is working as expected. You can control the autoFocus state using the MatDialogConfig
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Closing as this is working as expected. You can control the
autoFocusstate using theMatDialogConfig