1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 00:17:31 +02:00

common: fix modal animation on mobile & tweak some transition & animation css

This commit is contained in:
David Sevilla Martin
2020-03-23 13:38:35 -04:00
parent 39dc303b80
commit 37cec1487e
4 changed files with 17 additions and 4 deletions

View File

@@ -58,7 +58,11 @@ export default class ModalManager extends Component {
MicroModal.show('Modal', {
awaitCloseAnimation: true,
awaitOpenAnimation: true,
onShow: () => $('body').addClass('modal-open'),
onClose: () => {
$('body').removeClass('modal-open');
const backdrop = $('.modal-backdrop');
backdrop.fadeOut(200, () => {