bug(MatSelect): When panel is displayed inside a SideNav, it stays opened on Escape button #30507
Labels
area: material/select
area: material/sidenav
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Hi,
When using MatSelect inside a SideNav, if the panel is opened and we close the sideNav with the Escape button, the MatSelect panel stays opened.
I expected the same behavior like with the MatDatePicker, if the picker panel is opened, when using Escape the picker is closed first, and then using Escape again closes the sideNav.
I also provide the same sample inside a Dialog using the MatSelect and MatDatePicker and in this case, both works the same way and correctly.
The issue seems related to this one:
#7981
Thanks
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-r9az1u4q
Steps to reproduce:
Expected Behavior
MatSelect should be closed with the escape button instead of the SideNav
Actual Behavior
SideNav is closed and MatSelect panel stays visible
Environment
The text was updated successfully, but these errors were encountered: