angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.33k stars 6.73k forks source link

bug(mat-sidenav): focus trapping is too aggressive under certain conditions #21955

Open mmalerba opened 3 years ago

mmalerba commented 3 years ago

Reproduction

This issue seems to manifest under the following conditions:

Steps to reproduce: https://stackblitz.com/edit/angular-avy29p?file=src%2Fmain.ts

  1. click to focus the "Content" input

Expected Behavior

"Content" input remains focused.

Actual Behavior

"Drawer" input immediately steals focus.

jelbourn commented 1 year ago

For the record: much conversation took place on https://github.com/angular/components/pull/21962 related to this issue