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

Error raised on clicking vs-select #256

Closed
hmuhdkamran opened this issue Sep 25, 2018 · 11 comments
Closed

Error raised on clicking vs-select #256

hmuhdkamran opened this issue Sep 25, 2018 · 11 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@hmuhdkamran
Copy link

Dear I am getting an error while clicking select, the error is
Error in callback for watcher "active": "TypeError: this.$children[0].focusValue is not a function"

@luisDanielRoviraContreras luisDanielRoviraContreras added bug Something isn't working enhancement New feature or request labels Sep 25, 2018
@luisDanielRoviraContreras
Copy link
Member

Already fixed in the latest version, thank you very much for the contribution

@hmuhdkamran
Copy link
Author

hmuhdkamran commented Sep 27, 2018 via email

@luisDanielRoviraContreras
Copy link
Member

@hmuhdkamran You could pass me the code of implementation of the select and the data, to be able to fix the error better

@hmuhdkamran
Copy link
Author

hmuhdkamran commented Sep 28, 2018 via email

@luisDanielRoviraContreras
Copy link
Member

You can give me an example in jsfidle or codesanbox

@hmuhdkamran
Copy link
Author

hmuhdkamran commented Sep 30, 2018 via email

@vicvillalobos
Copy link

vicvillalobos commented Oct 27, 2018

As of version 3.6.0 released a few hours ago, this same error happened to me, but only when I set the data array after the select is loaded.

<vs-select danger-text="..." label="..." v-model="form_data.tipo.value"> <vs-select-item :key="index" :value="item.id" :text="item.name" v-for="(item,index) in form_data.tipo.data" /> </vs-select>

where form_data.tipo.data is updated correctly by a watcher once the data arrives from the api.

@vicvillalobos
Copy link

vicvillalobos commented Oct 27, 2018

Here's a jsfiddle with an example (the error shows up in the developer console).
Happens as well in my local project (vuesax 3.6.0, using npm on macOS Sierra)

-- EDIT:
Now I realize this happens by setting the select value to null.
Maybe it should be documented that it needs a dummy option to unset the value, rather than updating the value to null?

@luisDanielRoviraContreras
Copy link
Member

@vicvillalobos please there will be other issues to follow up

@hmuhdkamran
Copy link
Author

The error still persists, even on vuesax site.
untitled
(url)

@luisDanielRoviraContreras
Copy link
Member

let's check and fix it thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants