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

Autocomplete Value reset after selected #72

Open
jonasdulay28 opened this issue Feb 11, 2019 · 4 comments
Open

Autocomplete Value reset after selected #72

jonasdulay28 opened this issue Feb 11, 2019 · 4 comments

Comments

@jonasdulay28
Copy link

Once i selected a value the autocomplete reset and no value was set
using this a source
http://api.dataatwork.org/v1/jobs/autocomplete?begins_with=

@jonasdulay28
Copy link
Author

<autocomplete source="http://api.dataatwork.org/v1/jobs/autocomplete?begins_with=" results-display="suggestion" > </autocomplete>

@mahi008
Copy link

mahi008 commented Mar 6, 2019

Same problem here.. is there any way to deactivate this default behavior ?

@arirah
Copy link

arirah commented May 12, 2020

@jonasdulay28 did you get solution , why autocomplete Value reset after selected??

@adamcmoore
Copy link

I faced a similar issue where I wanted the query text to remain if the user unfoucsed the field. My work around to this was by overriding the clear method in my parent component like below:

mounted: function() {
    this.$refs.autocomplete.clear = function() {
        // do nothing
    }
},

It would be nice to see this as an option.

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

4 participants