Fix wrong modal scroll when previous modal scrolled down

[MAILPOET-1510]
This commit is contained in:
Jan Jakeš
2019-01-16 16:04:45 +01:00
parent 2fd6c0abf1
commit bf62034b4a

View File

@@ -412,6 +412,9 @@ define('modal', ['mailpoet', 'jquery'],
this.focus(); this.focus();
} }
// reset any possible scroll from previous modal
jQuery('#mailpoet_modal_overlay').scrollTop(0);
// set popup as opened // set popup as opened
this.opened = true; this.opened = true;