-
Notifications
You must be signed in to change notification settings - Fork 95
fix(NcPopover): component crash when unmounted shown #7077
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
Conversation
Is it expected? Why? |
I haven't checked, but probably cause it's a ref. Didn't you add it yourself? 👀 |
when is this the case? We had the same discussion when I added the optional chaining operator: |
|
And from the code I do not see where this can ever be undefined in those event listeners |
|
Currently happening, when there is an error while closing popover. Maybe it's redundant, but nevertheless - we can put it in one place and skip in another two |
When it's If If |
|
Could you confirm, that |
|
See reproduction details cc @susnux @ShGKme DetailsWIP error a
|
69f669a to
bc02bc9
Compare
Signed-off-by: Maksim Sukharev <[email protected]>
bc02bc9 to
3dc7f45
Compare
|
For the history: Vue 3 sets template ref to https://github.com/vuejs/core/blob/v3.5.17/packages/runtime-core/src/renderer.ts#L2110 |

☑️ Resolves
getPopoverContentElement()can be undefined, so it should not fail when trying to add a listener🏁 Checklist
stable8for maintained Vue 2 version or not applicable