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

How to prepopulate the text box? #226

Open
avi12 opened this issue Jul 30, 2024 · 2 comments
Open

How to prepopulate the text box? #226

avi12 opened this issue Jul 30, 2024 · 2 comments
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. type: question Request for information or clarification. Not an issue.

Comments

@avi12
Copy link

avi12 commented Jul 30, 2024

In my scenario, I load <gmpx-place-picker> inside a sandbox page inside an iframe inside a Chrome extension content script
After the user selects a location, he will close the pop-up injected into the content script
How do I make sure that the next time he loads up, <gmpx-place-picker> is prepopulated with the value he selected earlier?

@avi12 avi12 added triage me I really want to be triaged. type: question Request for information or clarification. Not an issue. labels Jul 30, 2024
@awmack
Copy link
Collaborator

awmack commented Aug 15, 2024

Good question, there isn't a way to do this right now. Are you looking to pre-populate the text box purely for display purposes? Or would you need to pre-populate placePicker.value (i.e. the Place instance) as well?

@awmack awmack added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed triage me I really want to be triaged. labels Aug 15, 2024
@avi12
Copy link
Author

avi12 commented Aug 15, 2024

For display purposes, yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants