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 after tabbing to the dropdown field #460

Open
michelsteege opened this issue May 2, 2024 · 1 comment
Open

Error after tabbing to the dropdown field #460

michelsteege opened this issue May 2, 2024 · 1 comment

Comments

@michelsteege
Copy link

If i tab to the country dropdown field and then press on a key to search for a country, for example the G to search for germany the following error pops up:

framework.WqgB__At.js:2 TypeError: Cannot read properties of undefined (reading 'children')
at Ad (app.w14FqNXZ.js:7:9999)
at framework.WqgB__At.js:2:50856
at Je (framework.WqgB__At.js:2:35)
at Se (framework.WqgB__At.js:2:105)
at Se (framework.WqgB__At.js:2:205)
at HTMLDivElement.n (framework.WqgB__At.js:2:50641)
at HTMLDivElement.c (rocket-loader.min.js:1:9405)

You can try this on the demo website aswell: https://vue-tel-input.iamstevendao.com/ tab untill you focus on the country dropdown and then press any key

@pascalvaccaro
Copy link

pascalvaccaro commented Jun 5, 2024

@iamstevendao I believe the refList becomes null or undefined whenever data.open is false:
See your source file with the template loading the ref with a v-if: https://github.com/iamstevendao/vue-tel-input/blob/95a111baedfe771457b92737ac02fbe32bd9b282/src/components/vue-tel-input.vue#L29C7-L29C27

If you want I can replace the v-if directive with a v-show directive it should solve the issue

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