sagalbot / vue-select

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.
https://vue-select.org
MIT License
4.63k stars 1.34k forks source link

Vue-select gives error for conditional-rendering #1772

Open ppatil01 opened 1 year ago

ppatil01 commented 1 year ago

Please respect maintainers time by filling in these sections. Your issue will likely be closed without this information.

Describe the bug Below runtime error is thrown when using the vue-select component in v-if / v-else block. "runtime-core.esm-bundler.js:226 TypeError: Cannot read properties of undefined (reading '__asyncLoader')"

Reproduction Link A link to a reproduction of the bug. This is a huge help.

Steps To Reproduce Create a simple if-else rendering with vue-select in it and try to display change the options. e.g:

Expected behavior When you change the select value, the correct v-select should render

Screenshots If applicable, add screenshots to help explain your problem.