mat-icon-button shows focus circle after snav.close()
See original GitHub issueBug, feature request, or proposal:
Bug
What is the expected behavior?
The mat-icon-button will not be focused after closing the sidebar via snav.close()
What is the current behavior?
The mat-icon-button is focused after closing the sidebar via snav.close()
What are the steps to reproduce?
https://stackblitz.com/edit/angular-ubvx8j?file=app%2Fsidenav-responsive-example.html
What is the use-case or motivation for changing an existing behavior?
UI/UX Is not intuitive or easily controlled. Any workaround seems hacky at this point.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Currently testing latest in Chrome on MacOS.
Is there anything else we should know?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Angular Material button remove autofocus - Stack Overflow
After clicking or touching on a Material Design button it stays focused ... <button mat-icon-button type="button" onclick="this.blur()" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ericuldall It can be solved pretty easily by adding
onclick="this.blur()"
to the button, though it is a bit annoying to add it everywhere. I forked your Stackblitz and added a 2nd button to demonstrate: https://stackblitz.com/edit/angular-ubvx8j-hgza91?file=app/sidenav-responsive-example.htmlSimply set [disableRipple]=“true” in html.