-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(google-maps): allow for info window focus behavior to be customized #23831
Conversation
@@ -168,7 +168,7 @@ export class MapInfoWindow implements OnInit, OnDestroy { | |||
* Opens the MapInfoWindow using the provided anchor. If the anchor is not set, | |||
* then the position property of the options input is used instead. | |||
*/ | |||
open(anchor?: MapAnchorPoint) { | |||
open(anchor?: MapAnchorPoint, shouldFocus?: boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a suggestion: I'm wondering if we should pass these things through an object literal, making the API more readable when more options are added? I find it generally more clear like open({shouldFocus: false})
, than open(undefined, false)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing it to an object literal would be a breaking change at this point. We could support both syntaxes for a while, but I don't think it's a big deal considering that there are only two parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I also would prefer an object here (with backwards compat), but don't feel strongly enough to block the change
@crisbeto After running a google3 presubmit, it looks like our internal version of the the Google Maps typings is out of date. The |
@googlebot: rescan |
Allows for the `shouldFocus` flag to be passed when opening the info window. Fixes angular#23829.
ddc3d1d
to
21fca4e
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Allows for the
shouldFocus
flag to be passed when opening the info window.Fixes #23829.