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

Prop source cannot be a computed/method that returns array #85

Open
carsonreinke opened this issue Jan 24, 2020 · 0 comments
Open

Prop source cannot be a computed/method that returns array #85

carsonreinke opened this issue Jan 24, 2020 · 0 comments

Comments

@carsonreinke
Copy link

Right now, providing a function for prop source requires that it returns a string. This should be changed to check what the function returns, as this may return an array instead of a string.

There is then no way to use a computed or method for the source prop, unless it returns a string.

https://github.com/charliekassel/vuejs-autocomplete/blob/master/src/components/Autocomplete.vue#L244

https://github.com/charliekassel/vuejs-autocomplete/blob/master/src/components/Autocomplete.vue#L250

I'd be happy to put in a PR if this is agreeable.

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

1 participant