Angular MatDialog it take a long time to close

WebViewer Version: ‘10.1.1’

I use WebViewer do it dialog with MatDialog in angular whent ,I want to close dialog it take a long time to close.

my code

Hello,

Thank you for contacting WebViewer support.
This issue seems to be something related to Angular. Unfortunately, we don’t give support to framework-specific issues.
If you see any error on the console related to one of our APIs, please let us know and we can investigate this better for you.

Best,
Dandara Navarro