You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We render Autocomplete inside OverlayPanel and after adding input and clicking on Esc button, it crashes our app with the following error.
I tried to reproduce the bug, but it didn't happen in stackblitz. In the below image you can clearly see that error is happening because focusInput ref is undefined, and my assumption is that in our app, onChange listener is being triggered a bit later than in stackblitz, because we have much more logic in our app and when it is triggered, the component was already unmounted.
Describe the bug
We render
Autocomplete
insideOverlayPanel
and after adding input and clicking onEsc
button, it crashes our app with the following error.I tried to reproduce the bug, but it didn't happen in stackblitz. In the below image you can clearly see that error is happening because focusInput ref is undefined, and my assumption is that in our app,
onChange
listener is being triggered a bit later than instackblitz
, because we have much more logic in our app and when it is triggered, the component was already unmounted.Reproducer
https://stackblitz.com/edit/jewhvd?file=src%2FApp.vue
PrimeVue version
3.51.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
Chrome 124
Steps to reproduce the behavior
Render
AutoComplete
insideOverlayPanel
, enter some values in search input and then clickEsc
.Expected behavior
No app crashes
The text was updated successfully, but these errors were encountered: