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

_this3.$refs.match is undefined #10

Open
villybob opened this issue Dec 11, 2018 · 3 comments
Open

_this3.$refs.match is undefined #10

villybob opened this issue Dec 11, 2018 · 3 comments

Comments

@villybob
Copy link

Hi,
All works fine, but i have this kind of error at console(_this3.$refs.match is undefined). Do you know why?
Thanks

@robrogers3
Copy link
Owner

robrogers3 commented Dec 11, 2018 via email

@villybob
Copy link
Author

I just know that error is only when I use "watch" for hidden the select. If I delete watch I don't have error.
This is the code: <div v-if="dropdown"> <vue-single-select option-label="name" :options="api" v-model="coinSelected"> <template slot="option" slot-scope="{option}"> <div class="select_coin_wrap"> <div class="coin_logo"> <img class="select_logo" :src="option.icon"> </div> <div class="coin_symbol"> <span class="select_symbol">{{ option.symbol }}</span> </div> <div class="coin_separator"> <span class="separator">-</span> </div> <div class="coin_name"> <span class="name">{{ option.name }}</span> </div> </div> </template> </vue-single-select> </div>
And JS watch: watch: { coinSelected(){ if(this.coinSelected.hasOwnProperty('name')){ this.dropdown=!this.dropdown; this.logo=this.coinSelected.icon; this.symbol1=this.coinSelected.symbol; this.name1=this.coinSelected.name; this.coin=this.coinSelected.buy; } } },

@robrogers3
Copy link
Owner

robrogers3 commented Dec 11, 2018 via email

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

2 participants