Answers for "TypeError: Cannot read properties of undefined (reading 'overlayAnimation')"

0

TypeError: Cannot read properties of undefined (reading 'overlayAnimation')

I found the reason for the solution.

It turned out that the error is not random. An error occurs when adding a drop-down list to a static dialog box, after opening the dialog box, then clicking on the drop-down list and not clicking on the drop-down list item to close the dialog box, then upon reopening there will be an error when trying to open the drop-down list by clicking on it.

To solve the problem when calling the event of hiding the dialog box, call the hiding of the drop-down list element.

<p-dialog (onHide) = "hide (dd)">
<p-dropdown #dd>
hide (el) {
el.hide ()
}
Posted by: Guest on January-10-2022

Code answers related to "TypeError: Cannot read properties of undefined (reading 'overlayAnimation')"

Browse Popular Code Answers by Language