fix(moadl): toggle 'modal-open' class after animation

Fixes #1629