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

fix(get-val): call autocompleteInstance.val instead ac.autocomplete.getVal #919

Merged
merged 2 commits into from
Oct 28, 2019

Conversation

JonathanMontane
Copy link
Contributor

@JonathanMontane JonathanMontane commented Oct 28, 2019

Closes #906

Summary
This PR fixes an issue where we called the wrong method on autocomplete, which led to getVal always returning undefined.

Result
Calling placesInstance.getVal() now returns the value currently present in the input (see new e2e tests)

Note: I also did a yarn upgrade to fix some yarn.lock warnings that were not needed

Copy link
Contributor

@raphi raphi left a comment

Choose a reason for hiding this comment

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

LGTM

@JonathanMontane JonathanMontane merged commit 6621655 into master Oct 28, 2019
@JonathanMontane JonathanMontane deleted the fix/get-val branch October 28, 2019 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getVal() always return undefined
2 participants