Skip to content

X2-13567 Autoselecting place from remoteId in GooglePlacesAutoComplete#393

Merged
manojx031 merged 13 commits intoxola:masterfrom
SemenStruchev:X2-13567
Mar 3, 2026
Merged

X2-13567 Autoselecting place from remoteId in GooglePlacesAutoComplete#393
manojx031 merged 13 commits intoxola:masterfrom
SemenStruchev:X2-13567

Conversation

@SemenStruchev
Copy link
Contributor

No description provided.

@manojx031 manojx031 requested a review from Copilot January 29, 2026 07:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for selecting a specific Google Places suggestion by its remote place_id when the component initializes. Instead of always selecting the first result from the autocomplete suggestions, the component can now match and select a suggestion based on the provided remoteId prop.

Changes:

  • Added a remoteId prop to the GooglePlacesAutocomplete component
  • Modified the fetchSuggestions function to accept a selectMatchingId parameter instead of selectFirst boolean
  • Implemented logic to find and select a suggestion matching the provided place_id

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@manojx031 manojx031 changed the title X2-13567 add selection using remote id X2-13567 Autoselecting place from remoteId in GooglePlacesAutoComplete Mar 2, 2026
@manojx031 manojx031 merged commit 6a7e83c into xola:master Mar 3, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants