MAT-ERROR leaving the DOM is causing the parents animate.leave to be triggered. Reproduce by clicking in the code field without entering any value and trigger the ...