You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(google-maps): No way to prevent keyboard focus from going to Info Windows #23829
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureLabel used to distinguish feature request from other issues
as shown in the example here: https://developers.google.com/maps/documentation/javascript/infowindows#open , i.e: set shouldFocus to false on the InfoWindowOpenOptions object. But there is no way to do this in the angular/google-maps package. In the package, the wrapper component https://github.com/angular/components/blob/master/src/google-maps/map-info-window/map-info-window.ts , has an open method, which only accepts MapAnchorPoint as its argument type - it doesn't support accepting InfoWindowOpenOptions type. Notice that if you access the underlying google.maps.InfoWindow directly in the wrapper, its open method signature is open(map?: Map | StreetViewPanorama, anchor?: MVCObject): void;
so it also does not support accepting InfoWindowOpenOptions as its argument type. Consequently there is no way to prevent keyboard focus from going to Info Windows when they open.
The feature request here is to allow support for InfoWindowOpenOptions as an argument type in the open method, so that shouldFocus can be set to false.
Use Case
Currently facing an accessibility use case: we enter a value into a field, which triggers the map to re-render and its Info Windows to open. To meet an a11y acceptance criteria, the focus should remain on the field, rather than move to one of the Info Windows opened, so having this feature would enable us to meet the a11y criteria.
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureLabel used to distinguish feature request from other issues
Activity
feat(google-maps): allow for info window focus behavior to be customized
feat(google-maps): allow for info window focus behavior to be customized
feat(google-maps): allow for info window focus behavior to be customi…
angular-automatic-lock-bot commentedon Feb 13, 2022
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.
feat(google-maps): allow for info window focus behavior to be customi…