@aleksandra_budnik hello
I want to attract your attention to the other problem in this demo. There is the same strange behavior described in this branch Angular MatDialog doesn't render properly if opened from context menu callback function
Btw here is the other demo which shows that the component (dialog) isn’t rendered correctly (hope this clarify situation)
Thank you in advance.