After adding the dialog and adding the dropdown to it, the problem occurs. When you first open and click on the drop-down list, there is no error, however, when you re-open and click on the drop-down list to open it, an error may occur (it can be like the second, third or any subsequent one - randomly).
Error text: ERROR
Error: Cannot read property 'overlayAnimation' of undefined
Example: https://github-d5uajw.stackblitz.io/
I found the reason for the solution.
hide (el) {
el.hide ()
}
Just for anyone who deals with this unwanted behaviour, do not forget that in the documentation there is a solution for this: just add the attribute 'appendTo="body"' to your dropdown or autocomplete components that are inside your p-dialog...
Most helpful comment
Just for anyone who deals with this unwanted behaviour, do not forget that in the documentation there is a solution for this: just add the attribute 'appendTo="body"' to your dropdown or autocomplete components that are inside your p-dialog...