Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

placesAutocomplete.setVal('text') does not work? #288

Closed
frenchbread opened this issue Jul 18, 2016 · 4 comments
Closed

placesAutocomplete.setVal('text') does not work? #288

frenchbread opened this issue Jul 18, 2016 · 4 comments
Labels

Comments

@frenchbread
Copy link

When programmatically trying to pre-fill "placesAutocomplete" input field using placesAutocomplete.setVal('text') nothing happens.

placesAutocomplete.getVal() does not seem to work in some cases as well.

This all is used within meteor application (if it makes sense).

@vvo
Copy link
Contributor

vvo commented Jul 19, 2016

About getVal(), see algolia/autocomplete#91

@vvo vvo added bug and removed investigate labels Jul 19, 2016
@vvo vvo closed this as completed in 7f42f07 Jul 19, 2016
@vvo
Copy link
Contributor

vvo commented Jul 19, 2016

@frenchbread Just fixed setVal(), you also need to .open() to actually show the menu and do the request.

Still, getVal() is buggy for now, we will fix it ASAP

vvo pushed a commit that referenced this issue Jul 19, 2016
@VMF214
Copy link

VMF214 commented Aug 5, 2016

have you also an idea to trigger a change event?
for example , i use setVal() to put an init value, and i'd like to trigger the change event to do my logical stuff ...

@vvo
Copy link
Contributor

vvo commented Aug 25, 2016

@VMF214 Could you open a new issue instead an explain your problem here? Thanks

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

No branches or pull requests

3 participants