Fix wrong modal scroll when previous modal scrolled down
[MAILPOET-1510]
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user