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

Disposing component without closing throws an error #414

Closed
nerdoza opened this issue Mar 16, 2022 · 0 comments
Closed

Disposing component without closing throws an error #414

nerdoza opened this issue Mar 16, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nerdoza
Copy link

nerdoza commented Mar 16, 2022

Describe the bug
When the select component is disposed with the select drawer open, an Uncaught TypeError is thrown.

Steps to reproduce the behavior:

  1. Add modal or other disposable component with a vue-next-select component nested inside.
  2. Open the select draw.
  3. Dispose of the parent component without closing the select draw.

Expected behavior
There should be no error thrown.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Problem seems to be related to the wrapper ref value being called on line 342 being null.
https://github.com/iendeavor/vue-next-select/blob/9fe934b12c684766093aa2239c48e8b0870969d9/src/index.vue#L341-L349

@nerdoza nerdoza added the bug Something isn't working label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant