Skip to content
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

Missing brackets in places-autocomplete-addressform #1637

Open
ElkCreekSteve opened this issue Dec 21, 2023 · 2 comments
Open

Missing brackets in places-autocomplete-addressform #1637

ElkCreekSteve opened this issue Dec 21, 2023 · 2 comments

Comments

@ElkCreekSteve
Copy link

Operating system

Win11

Browser Version

Edge 120.0.2210.77

How severe is the bug?

low

Bug description

When reusing the example from samples/places-autocomplete-addressform/index.ts, there are some curly brackets missing in the switch statement. "Locality" and "Country" don't have open/close brackets. This seems to work fine unless you remove the country field from the HTML and then the zip code portion breaks. Once you add in the appropriate brackets, it starts working correctly without the country field.

Steps to reproduce

Run the code as described on https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform#maps_places_autocomplete_addressform-javascript. Remove the country field from the HTML and see that Zip Code isn't populated. Edit the script to add the appropriate brackets and it starts working again.

Console log output

No response

@wangela
Copy link
Member

wangela commented Dec 21, 2023

If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.

@ElkCreekSteve Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

@ElkCreekSteve
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants