Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When using a screen reader on mobile device such as Voice Over in iOS,
-
on the double tap of the mat-select control, the focus stays on the control instead of focusing on the selected or first element in the panel. Until we manually tab inside the panel. Please see the attached video 1.
-
When the focus is inside the panel, on the first option and we swipe backwards (swipe to left), the focus goes to the last element on the page (last element on the footer of the host page). Please see the attached video 2.
Though I only documented iOS here, the issue also exists on Android (tested with Pixel 2 + Android 11). In Android swiping in either direction, left when on the first option and right when on the last option, will cause the focus to leave the panel and enter the content behind while the panel is still open.
Reproduction
Steps to reproduce:
- On an iOS Phone, open Safari and visit https://material.angular.io/components/select/examples
- Turn on Voice Over
- Use swipes, tab and double tab to interact with one of the mat-select controls and its options panel.
Expected Behavior
-
With Voice Over turned on, On double tab of the mat-select control, after the drop down panel opens, the selected option or the first option must have being focused.
-
With Voice Over turned on and dropdown panel open, while swaping backwards, the focus must not go into the background content. Focus must either stay in the panel or go to the Safari toolbar (refresh button, back button, etc...).
Actual Behavior
-
Focus stays on the mat-select control even though the panel has opened.
-
Focus leaves the panel and enters other page content while the panel is still open.
Environment
- Angular: 14.2.3
- CDK/Material: Mat-Select
- Browser(s): Safari
- Operating System (e.g. Windows, macOS, Ubuntu): iOS 15.7 and iOS 15.6.1